IIS CS0016 错误解决方案

来源:互联网 发布:美剧推荐hbo 知乎 编辑:程序博客网 时间:2024/04/29 17:49

Asp.net 程序有时候在启动的时候会发生如下错误,导致web应用程序无法正常启动

CS0016: Could not write to output file 'c:\WINDOWS\...\Temporary ASP.NET Files\root\...\App_LocalResources.root.iuqw_i1r.resources.dll' -- 'Access is denied. '

 

解决之道:

You need to allow full control to two users of your system "Network Service " and "YourComputerName\IIS_IUSRS".

Just right click following folders
1. C:\Windows\Temp
2. C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

and go to Security tab, click Edit and click Add and try adding "Network Service" and"YourComputerName\IIS_IUSERS", from the Permission checkbox, click Full Control. Click Apply and OK.

Restart your IIS and try running your web application. Hopefully it should run.