An error occurred after the program was deployed on IIS-the current identity (NT authority/network SERVICE) does not have the C:/windows/microsoft.net/framework/v2.0.50727/temporary ASP. NET Files Write access rights:
This is usually caused by installing the. NET Framework before installing the IIS server, so just re-register the. NET Framework on IIS again:
At the command line, enter the command:
Copy Code code as follows:
C:/windows/microsoft.net/framework/v2.0.50727/aspnet_regiis-i–enable
This is OK, refresh the page to try it.
The current identity does not have a workaround for write access to "temporary asp.net Files"
Questions about the current identity (username \aspnet) write access to asp.net files
Because yesterday colleagues accidentally deleted system files, causing the server can not start, repair the system after the discovery of B/s system is not run up, whining, I am anxious ah ... In view of a bottle of less than half bottle bam, decided to Baidu a ... So, found this article, I read, also used, really recovered, I really thank you thank you to thank this netizen ah, after all, the power of the network is big ...
Error:
The current identity (**\aspnet) does not have write access to "C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary asp.net Files."
Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.
Exception Details: System.Web.HttpException: The current identity (**aspnet) does not have a "C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary asp.net Files "Write access rights.
SOURCE Error:
An unhandled exception was generated during the execution of the current WEB request. You can use the following exception stack trace to determine information about the cause of the exception and where it occurred.
Stack trace:
[HttpException (0x80004005): The current identity (**\aspnet) does not have a "C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary asp.net Files "Write access rights. ]
System.Web.HttpRuntime.SetUpCodegenDirectory (compilationsection compilationsection) +3591451
System.Web.HttpRuntime.HostingInit (hostingenvironmentflags hostingflags) +222
[HttpException (0x80004005): The current identity (**\aspnet) does not have a "C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary asp.net Files "Write access rights. ]
System.Web.HttpRuntime.FirstRequestInit (HttpContext context) +3540923
System.Web.HttpRuntime.EnsureFirstRequestInit (HttpContext context) +69
System.Web.HttpRuntime.ProcessRequestInternal (HttpWorkerRequest wr) +275
Solution:
1) Close Vs.net
2) net stop IISAdmin
3) C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis-i-enable is equivalent to reinstalling. NET
4) IISReset
The following is a set of methods for ASP.net 4.0
Today, the deployment of a Web site, environment Windows 2008+iis 7.5, after the deployment of a good access prompt error:
Server Error in '/' Application.
The current identity (Ecs-xxxxx\testweb) does isn't have write access to ' C:\Windows\Microsoft.NET\Framework\v4.0.30319\ Temporary asp.net Files '.
Online method C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis-i-enable after registration or not, and finally follow the error prompts to view this directory, found temporary asp.net files does not exist, the new folder temporary asp.net files and access is normal after the permissions are assigned.
About Cs0016:could not write to output file ' c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary asp.net Files ... ' Access is denied. ' Solution
1, add users "network Service" and "iis_iusers" read the following directory reading and writing permissions
A) C:\Windows\Temp
b) C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary asp.net Files
2. In C:\Windows\Microsoft.NET\Framework64\v4.0.30319
Aspnet_regiis.exe-i
3. Restart IIS
Iisreset/retart
If it still doesn't work, reload IIS and the framework, and then perform the previous steps