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