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

 

CS0016: Could not write to output file 'c:WINDOWS...Temporary ASP.NET Files oot...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 "YourComputerNameIIS_IUSRS".

Just right click following folders
1. C:WindowsTemp
2. C:WindowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files

and go to Security tab, click Edit and click Add and try adding "Network Service" and"YourComputerNameIIS_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.

原文地址:https://www.cnblogs.com/wahaccp/p/3203721.html