Weird error due to permissions

So it is 1:30 am and I am sitting here trying to hodge-podge a medium server farm together to test a Kerberos issue/theory. My environment is a Windows Server 2008 box as my central admin, WFE, Excel, and query server (physical hardware), Windows Server 2003 VPC as the Index server, and a another VPC (running on another host) playing the role of SQL Server 2005 and Domain Controller. Does it sound like fun? Yeah right.

Anyway, I started getting the error below whenever I tried to start the Office SharePoint Server Search service on the index box.

An unhandled exception occurred in the user interface.Exception Information: Unable to generate a temporary class (result=1).
error CS2001: Source file ‘C:\Windows\TEMP\xm7qyq1x.0.cs’ could not be found
error CS2008: No inputs specified

Quick search? Nothing. A little playing and guessing and the issue turned out to be permissions. For some reason WSS_Admin_WPG and WSS_WPG did not have the any rights to c:\windows\temp on the central admin server. So I gave wss_admin_wpg full control and wss_wpg read & execute. Fixed everything instantly. I am guessing this is an issue with my random servers (not clean installs for this test) and not a W2K8 issue. Anyway, hopefully the error message and fix saves someone else some time.

Shane

SharePoint Consulting

7 thoughts on “Weird error due to permissions”

  1. Hi Shane,

    Thank you for your post :-)

    I also encountered the same problem and didn’t realize it could be related to some permission problems.

    I gave full permission to authenticated users and was able to solve the problem.

    Thanks,
    Prasad.

  2. Hi Shane

    I have the same exact issue and have been Googling this issue for half an hour with no match till I saw this blog.

    I did what you did and works finally.

    wss_admin_wpg – full control
    wss_wpg – read & execute

  3. Hi Shane

    I have similar error message on the web page.

    I did what you did and it works fine for me.

    I have also pasted my application message from my event viewer.

    Event Type: Error
    Event Source: Office SharePoint Server Error Reporting
    Event Category: None
    Event ID: 5000
    Date: 18/02/2008
    Time: 10:36:29 AM
    User: N/A
    Computer: WINSERVER2K3R2
    Description:
    EventType ulsexception12, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 system.xml, P5 2.0.0.0, P6 471ebef7, P7 8455, P8 548, P9 invalidoperationexception, P10 837w.

    Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>