编译器错误信息: CS0016: 解决办法

 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\v2.0.50727\Temporary ASP.NET Files\test\cd3dbe0d\3a3b8c58\App_Web_default.aspx.cdcab7d2.yorq4zph.dll' -- '拒绝访问。 '

Source Error:

 
[No relevant source lines]

Source File:    Line: 0


解决方法:
     在C:\WINDOWS\temp文件夹上面加上IIS_WPG 控制权限(修改、写入),重新启动IIS 。
     这样有的页面是可以访问了,可好多页面还是无法访问,报上面同样的错误。于是将C:\Windows\temp文件夹清空,Temporary ASP.NET Files文件夹也清空。重新启动IIS,OK啦!

你可能感兴趣的:(编译器)