ASP.NET cannnot access to windows temp folder?

Sali Hoo picture Sali Hoo · May 10, 2011 · Viewed 18k times · Source

whenever I want to run my application from localhost it generates the following wierd error

Server Error in '/' Application.
--------------------------------------------------------------------------------

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: CVT1108: cannot open C:\Windows\TEMP\RESC1C1.tmp for writing

Source Error:



[No relevant source lines]


Source File:    Line: 0 



Show Detailed Compiler Output:

....

CVTRES : fatal error CVT1108: cannot open C:\Windows\TEMP\RESC1C1.tmp for writing
Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

error CS1583: 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\449ad1a6\abc33f1b\CSCC1C0.tmp' is not a valid Win32 resource file

Answer

artfulhacker picture artfulhacker · Nov 29, 2011

Here are the steps to fix it:

Go to C:\Windows

Right Click the Temp folder

Click on Properties

Go to Security

Give CREATOR OWNER group full control.