Vijay Sharma
Vijay Sharma

Reputation: 1

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?

Upvotes: 0

Views: 1954

Answers (2)

kenwarner
kenwarner

Reputation: 29120

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

Upvotes: 0

cjk
cjk

Reputation: 46425

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

Upvotes: 3

Related Questions