Document directory
The current identity (nt authority/Network Service) does not have write access to 'C:/Windows/Microsoft. NET/framework/v2.0.50727/Temporary ASP. NET files '.
It is a pity that many IIS problem solving experiences have not been recorded in the past. In fact, after a long time, you can't remember the problem. When the problem occurs again, you have to find a solution. When we encounter a problem this time, we will seize the opportunity to protect the on-site records.
Fault site:
"/" Indicates a server error in the application. The current identity (nt authority/Network Service) does not have write access to "C:/Windows/Microsoft. NET/framework/v2.0.50727/Temporary ASP. NET Files. Note:An error occurred while executing the current Web request. Check the stack trace information for details about the error and the source of the error in the code. Exception details:System. web. httpexception: The current identifier (nt authority/Network Service) does not apply to "C:/Windows/Microsoft. net/framework/v2.0.50727/Temporary ASP.. Net files. Source error: An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception.
Stack trace: [Httpexception (0x80004005): The current identifier (nt authority/Network Service) is not against "C:/Windows/Microsoft. net/framework/v2.0.50727/Temporary ASP.. Net files.] System. web. httpruntime. setupcodegendirectory (compilationsection) + 3591451 system. web. httpruntime. hostinginit (hostingenvironmentflags hostingflags) + 222 [httpexception (0x80004005): The current identifier (nt authority/Network Service) is not against "C:/Windows/Microsoft. net/framework/v2.0.50727/Temporary ASP.. Net files.] System. Web. httpruntime. firstrequestinit (httpcontext context) + 3540923 System. Web. httpruntime. ensurefirstrequestinit (httpcontext context) + 69 System. Web. httpruntime. processrequestinternal (httpworkerrequest wr) + 275 Version:Microsoft. NET Framework Version: 2.0.50727.832; ASP. NET version: 2.0.50727.832 |
Solution:
Run: C:/Windows/Microsoft. NET/framework/v2.0.50727/aspnet_regiis-I
Among them, "v2.0.50727" may also be another version number. Please pay attention to the bottom of the fault site.