A. After I rebooted a server, my SharePoint server no longer worked, and when I went to the server, I just got a generic error.

The first step was to turn off custom errors, so I could see the actual problem. I opened the web.config file in Notepad. It’s found in the root of your virtual directory for the website. For example, if its Windows SharePoint Services (WSS), the file location would be "C:\inetpub\wwwroot\wss\VirtualDirectories\80" by default.

Search for customErrors and change to the following:

<customErrors mode="Off" />
 

Navigate to your webpage again, and you should get a more detailed error (see screen shot below):

iiswsserrorreqpermissions
iiswsserrorreqpermissions-Copy

 

The solution is to change the security policy to full. Typically you would add the following to the web.config file:

<securityPolicy>
    <trustLevel name="Full" policyFile="internal"/>
</securityPolicy>

If this is a SharePoint installation, there will already be a securityPolicy section:

 <securityPolicy>
   <trustLevel name="WSS_Medium" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_mediumtrust.config" />
   <trustLevel name="WSS_Minimal" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_minimaltrust.config" />
</securityPolicy>

Add the full policy to the start, so it looks like this:

 <securityPolicy>
   <trustLevel name="Full" policyFile="internal"/>
   <trustLevel name="WSS_Medium" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_mediumtrust.config" />
   <trustLevel name="WSS_Minimal" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_minimaltrust.config" />
</securityPolicy>

Now change the "<trustLevel name=" line to use the full policy. Search for "<trust level" (mine was previously using WSS_Minimal) and change to this:

<trust level="Full" originUrl="" />

WSS should now work fine again. Another item to check if this doesn’t work is the application pool settings, which are available via the Internet Information Services (IIS) Manager. Select your server, and select Application Pools. Select your SharePoint - 80 application pool, and select Advanced Settings. Make sure under Process Model that Identity is set to NetworkService, and Load User Profile is set to False (see the screen shot below):

iisapppoolpropwss
iisapppoolpropwss-Copy