ASP. NET two common exceptions-do not create mutex or network service and do not have temporary ASP. NET files write access permission ???

Source: Internet
Author: User
1. 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"

"/" 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 unhandled exception occurs during the execution of 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) + 3474171
System. Web. httpruntime. hostinginit (hostingenvironmentflags hostingflags) + 226

[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) + 3426903
System. Web. httpruntime. ensurefirstrequestinit (httpcontext context) + 88
System. Web. HttpRuntime. ProcessRequestInternal (HttpWorkerRequest wr) + 149

 

 

Positive Solution:

1) Disable VS. NET.
2) net stop iisadmin
3) C:/WINDOWS/Microsoft. NET/Framework/v2.0.50727/aspnet_regiis-I-enable
4) iisreset

2. failed to create Mutex

A server error occurs in the "/WebSite" application.
--------------------------------------------------------------------------------

Failed to create Mutex.
Note: An unhandled exception occurs during the execution of 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. InvalidOperationException: failed to create Mutex.
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:

[Invalidoperationexception: failed to create mutex.]
System. Web. Compilation. compilationmutex .. ctor (string name, string comment) + 3464673
System. Web. Compilation. compilationlock .... cctor () + 158

[Typeinitializationexception: "system. Web. Compilation. compilationlock" type initialization item causes an exception.]
System. Web. Compilation. CompilationLock. GetLock (Boolean & gotLock) + 32
System. Web. Compilation. BuildManager. EnsureTopLevelFilesCompiled () + 114

[HttpException (0x80004005): "System. Web. Compilation. CompilationLock" type Initial Value Setting raises an exception.]
System. Web. HttpRuntime. FirstRequestInit (HttpContext context) + 3426855
System. Web. HttpRuntime. EnsureFirstRequestInit (HttpContext context) + 88
System. Web. httpruntime. processrequestinternal (httpworkerrequest wr) + 149
--------------------------------------------------------------------------------
Version: Microsoft. NET Framework Version: 2.0.50727.42; ASP. NET version: 2.0.50727.42

 

 

Positive Solution:

1) C:/WINDOWS/Microsoft. NET/Framework/v2.0.50727/ASPNET_regiis-ga yourdomain/youraccount

2) iisreset

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.