Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASPNET user does not have write access to Temporary ASP.NET Files

I get the following error when running my Visual Studio 2008 ASP.NET project (start without Debugging) on my XP Professional box:

System.Web.HttpException: The current identity (machinename\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

How can I resolve this?

like image 203
y0mbo Avatar asked Sep 17 '08 18:09

y0mbo


4 Answers

Have you tried, the aspnet_regiis exe in the framework folder?

like image 73
DevelopingChris Avatar answered Sep 19 '22 13:09

DevelopingChris


I had the same problem. This is what I did:

  1. Go to c:\windows\microsoft.net\framework\v2.0.50727
  2. right click on "Temporary ASP.NET files"
  3. Security tab
  4. Select "Users(xxxxxx\Users) from Group
  5. check "Write"
  6. OK
like image 39
Djay Avatar answered Sep 18 '22 13:09

Djay


Either grant that user the level of access to that directory, or change the identity that the application's application pool runs under - in IIS Manager, determine what App Pool is used to run your application, then in the App Pool section of IIS Manager, look at the properties for that pool - the tab you want is "Identity" I think (this is off the top of my head).

You can set it to another user account - for example, Crystal Reports .Net requires update and delete access to C:\Temp - so we have a "webmaster" user, with administrator access, and use that identity for those applications.

like image 30
Ken Ray Avatar answered Sep 19 '22 13:09

Ken Ray


you can right click the Visual Studio & select run as administrator.

like image 33
Pragnesh Patel Avatar answered Sep 17 '22 13:09

Pragnesh Patel