Only 2 hours.

Cause it only took me two hours to figure out, and the internetz failed me, I am going to post this whomever might be Googling “Access Denied Compilation Error Vista Premium .net 2.0 Visual Studio.”

I was trying to get Visual Studio 2008 to work on my Vista Home Premium laptop. I was just trying to build a basic C# website and each time I got a compilation error. Note: I was trying to publish directly to IIS.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0016: Could not write to output file ‘c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\apm\32a49851\74a0ffaa\App_Web_default.aspx.cdcab7d2.v10qhuqk.dll’ — ‘Access is denied. ‘

A lot of the solutions say to look at this link: http://support.microsoft.com/kb/825791/en-us. All that does is reset your local temp directory so that the Network Service account has full permissions.

What you should do is give the Network Service account permissions to c:\windows\temp\. That solved my problem.

Happy compiling!

1 Response to “Only 2 hours.”


  1. 1 daveheinzel

    This will be handy when we are ready to launch Humzoo 2.0 later this week. It’s written all in C and will be run from a Windows laptop that is picking up a faint wireless signal from my neighbor who likes to pay their bills late. This whole “uptime” business is for the birds.

Leave a Reply