views:

4426

answers:

5

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

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 do I resolve this?

+3  A: 

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

DevelopingChris
Rookie mistake... forgot about that and did a Windows repair the other day without rerunning.
y0mbo
A: 

Make sure the ASPNET user has permission to write to that folder. Right click on the folder, Properties, Security tab.

ddc0660
A: 

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.

Ken Ray
A: 

You can try to fix it using the automated regiis utility aspnet_regiis.ext available in c:\windows\microsoft.net\framework\v2.0.50727

Otherwise just manually add the needed file permissions as noted in the error.

Mitchel Sellers
A: 

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

Pragnesh Patel