开发者

Compile time error: "Could not write to output file ... Access is denied"

开发者 https://www.devze.com 2023-01-14 18:01 出处:网络
I am getting the following error at compile time: CS0016: Could not write to output file \'c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\root\\7529765b\\d6c35794\\App_W

I am getting the following error at compile time:

CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7529765b\d6c35794\App_Web_uclogin.ascx.5a9fc98b.zqr8lwaw.dll' -- 'Access is denied. '

开发者_高级运维

Could anyone suggest how to fix this?


Restart IIS, then delete everything in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\.


See Error publishing a webservice in IIS 7.0

Try granting full access permissions to the ASP.NET account (Network Service) for the %TEMP% folder (c:\windows\temp)

Although, I found adding full access permissions for IIS_IUSRS instead of Network Service to solve this problem for me

0

精彩评论

暂无评论...
验证码 换一张
取 消