Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Cannot run ASP.NET 2005 website on Windows XP

I recently installed Visual Studio 2005 on Windows XP.
When I tried to run a simple ASP.NET 2005 website, I got the following error:

Server Error in '/testWebSite' Application.
----------------------

The current identity (it-nb30467-6\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The current identity (it-nb30467-6\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +3474155
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +226

[HttpException (0x80004005): The current identity (it-nb30467-6\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426887
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149
-----------------------

Does anybody know what is the cause and the solution to the problem?
Please help.

Thanks in advance for your kind help.
[2049 byte] By [Magdalene] at [2007-11-11 8:25:41]
# 1 Re: Cannot run ASP.NET 2005 website on Windows XP
See if the following newsgroup thread helps:

http://forums.asp.net/918725/ShowPost.aspx
pclement at 2007-11-11 23:13:20 >
# 2 Re: Cannot run ASP.NET 2005 website on Windows XP
Hi,
I did what Jose Reyes recommended but still can't get it to work.
I still get the same error.

Please advice.

Thanks.
Magdalene at 2007-11-11 23:14:20 >