About IIS resolves the temp directory permissions issue

  
Denies access to the temp directory. The identifier used to run XmlSerializer“NT AUTHORITY\\NETWORK SERVICE"; does not have sufficient permissions to access the temp directory. CodeDom will compile with the user account that the process is using, so that if the user does not have access to the system temp directory, it will not compile. Use the Path.GetTempPath() API to find the location of the temp directory.

Description: An unhandled exception occurred 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.


Sometimes the server will inexplicably appear the above problem, this problem is obviously a permission problem, the problem is that the permission setting of the temp directory under the windows directory does not work, after One error debugging found the following ideas, shared with netizens.


The reason for this problem twice was that I ran a batch file to clean up the garbage, cleaned up some files, and there was nothing wrong with it at the time. Later, this problem occurred. , twice are the problem, the solution:

1, temp directory permissions are correct, restart the computer, generally you can

2, set NETWORK SERVICE temp read and write Permissions; the next step is the key, stop the iis service, will aspnet

Copyright © Windows knowledge All Rights Reserved