Compile time error: "Could not write to output file ... Access is denied"
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
精彩评论