ASP.NET无法访问Windows临时文件夹?

Sal*_*Hoo 10 .net asp.net temp

每当我想从localhost运行我的应用程序时,它会生成以下奇怪的错误

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
Run Code Online (Sandbox Code Playgroud)

art*_*ker 25

以下是修复它的步骤:

转到C:\ Windows

右键单击Temp文件夹

单击"属性"

转到安全

给CREATOR OWNER组完全控制.

  • +1但请注意,Windows可能会忽略权限更改,最好的方法是将所有权更改(暂时)到"创建者所有者"组,然后授予其完全权限(请注意,将所有权更改为当前登录用户不一定有帮助) (3认同)