About IIS solution to the problem of temp directory permissions

Source: Internet
Author: User
Tags iis stack trace

Access to the TEMP directory is denied. The identity "NT authoritynetwork SERVICE" used to run XmlSerializer does not have sufficient permissions to access the TEMP directory. The CodeDom will compile with the user account that the process is using, so that if the user does not have permission to access the system temp directory, it will not be able to compile. Use the Path.gettemppath () API to find the location of the temp directory.

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.

Sometimes the server will inexplicably appear above problems, this problem is obviously a permission issue, the problem is the Windows directory of the TEMP directory to do not have a function of the permissions, after another error debugging found the following ideas, to share with you netizens.

Two times the antecedent of this problem was that I operated a garbage disposal batch file, cleaned up some files, then there was nothing, and then there was this problem, both of which are the solution:

1, the Temp directory right under the circumstances to restart the computer, the general can

2, the TEMP Set Network service read and write permissions; the next step is to stop the IIS service and the ASPNET

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.