I am experiencing the exact same issue with VS2005/.NET2.0.50727 on my local development machine running on Windows XP Pro SP2. I installed VS2005/.NET2.0 along side my VS2003/.NET1.1 installation. After the installation, the existing projects on the 1.1 platform continue work fine. However I get the following error when accessing a simple ASP.NET 2.0 page:
The current identity (DRFJMFWXP70417\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 (DRFJMFWXP70417\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 (DRFJMFWXP70417\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) +744
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +225
[HttpException (0x80004005): The current identity (DRFJMFWXP70417\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) +936
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +150
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
The security tab for the Temporary ASP.NET Files shows the ASPNET Machine Account having full control including write permissions. I also attempted both of Jose's recommendations using "aspnet_regiis -ga", plus I ran the same command for the <machine name>\ASPNET user, but I still get the same error.
Many thanks in advance to anyone who can assist with this issue,
Steve