The local development environment is fine, but publishing to the server appears: failed to write output file "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP. NET Files\root\ 106f9ae8\cc0e1169\app_global.asax.haz99mum.dll "--" denied access. "Error
Workaround:
1, the usual workaround: Because the temp directory under the system directory does not have the appropriate permissions, do the following:c:\windows\temp--> properties---safe----Add Network The read and write permissions of the service user can be resolved.
2. Open Server System C drive, open window, right-click Temp Property Security Edit Add Iis_iusrs user Control permission to add modify and Write permissions. This is the solution for Windows Server R2 Standard Edition SP1 64-bit Chinese version. (Mine is the problem. This solves, the network service above does not have the line)
Transferred from: http://blog.csdn.net/zyzlywq/article/details/17916799
CS0016: Failed to write output file "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP. files\root\921bbfc4\ca7cf42\ App_Code.fu98jwep.dll "--" denied access. ”