Server Error in '/' Application.
compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: Cs0016:could not write to output file ' c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP. files\root\ 21a2b314\31512cd\app_web_login.aspx.cdcab7d2.mfr3xa-z.dll '--' Deny access. ‘
Source Error
On the internet to find a lot of information, sorting out, there are the following 5 kinds:
1.
cleaned the "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP. NET Files" folderDelete the temporary files in the above folder, and then restart IIS. This is also a way, but there is no solution to the problem of my machine;
2, gave full permissions to IIS_IUSRS groupGive Iis_iuser full permissions to the folder for the physical path. This approach, tried or not resolved;
3, gave full permissions to "Everyone"Give everyone the full permission, the result is useless;
4. Ran The following command too:%windir%\microsoft.net\framework64\v4.0.30319\aspnet_regiis-iRe-register the NET4.0 in the run, directly drag the path to the Run window, press the space after the-I, enter the execution. General problem to here also solved, but I this problem still exist, depressed!
5, C:\Windows\Temp "folder plus Iis_iusrs permissionsAdding Iis_iuser to the Temp folder solves the problem.
Workaround for IIS with Server Error in '/' application.cs0016