Welcome to Atlanta .NET Regular Guys Sign in | Join | Help

Application Error for every new site collection using Network Services account

Have you ever been testing new web applications in SharePoint and constantly gotten the Runtime Error (Server Error in '/').  If you do get this error the real error might be displayed in the event log like the one I found below. 

Exception information:
    Exception type: HttpException
    Exception message: The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.


Request information:
    Request URL: http://sharepoint.devcow.com/
    Request path: /
    User host address: 127.0.0.1
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: NT AUTHORITY\NETWORK SERVICE

 

A common problem that I just recently saw when creating site collections using the Network Services account for the app pool was a restriction to the ASP.NET Temporary files.  This is due to the fact that the Network Services account is a restricted account, so by default it will not have permissions to everything another account, say an administrator, would have.

Keep this in mind next time you create a new site collection or web application and get the Runtime Error screen.  Go and check the event logs to see if the error is in there before you try to perform the actions asked on the screen, like changing the web.config which won't work.

Published 10-09-2007 05:51 by Brendon Schwartz

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

ptwdyjcm said:

[URL=http://ehxjcgeg.com]icyrdnvp[/URL]  <a href="http://pfpaopxa.com">kcqxpcwf</a>  xqzrmskj http://eincuqua.com vgeyqtan bjrlqfwx
October 20, 2007 12:54 AM

What do you think?

(required) 
(optional)
(required) 

About Brendon Schwartz

Brendon Schwartz has worked in the Atlanta area User Group scene and is known around town as one of the Atlanta .Net Regular Guys (www.devcow.com). He is currently on the INETA Board of Directors as the Vice President of Technology and is a Microsoft MVP for ASP.NET. Today, Brendon works to solve real world business problems with Microsoft technologies, such as SharePoint, Office, BizTalk, VSTS, and .NET technologies. In addition to presenting at local user groups, he helped create the Free Training 1,2,3! series (www.freetraining123.com) to help developers learn Microsoft technologies. He presented material at the first SharePoint 1,2,3! event (www.sharepoint123.com) along with other members of the Atlanta Microsoft Professionals. Brendon has helped on the leadership teams of five different user groups, and has been interviewed for his community efforts on Pod Casts - including the ASP.NET Pod Cast, .NET Rocks! (Carl Franklin Road Show - Atlanta) and the SharePoint Show Pod Cast. At the first Atlanta Code Camp in 2005, he presented material on ASP.NET mobile controls.
SkinName:iroha_Blog2
Powered by Community Server, by Telligent Systems