11

每当我想从 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
4

2 回答 2

27

以下是修复它的步骤:

转到 C:\Windows

右键单击临时文件夹

点击属性

转到安全

让 CREATOR OWNER 组完全控制。

于 2011-11-29T17:55:43.590 回答
3

对于那些像我一样不能完全控制 c:\windows\temp 的人

[这就是我解决的方法]
1-运行cmd AS admin(保持打开状态)。
2- 打开任务管理器和 KİLL explorer.exe。
3-转到以前打开的cmd。写 explorer.exe 回车。
4- 转到 c:\windows temp(右键单击)> 属性 -> 安全
5- 现在您可以将 \IIS_IUSRS 更改为完全控制

注意:某些应用程序可能会给出有关提升的 exploer.exe 的错误。重启后会修复。

如果您不想重新启动;
[将explorer.exe退出管理员模式]
1-转到之前打开的任务管理器。杀死 explorer.exe
2- 在任务管理器文件中-> 开始新进程写入 explorer.exe
3- 现在 explorer.exe 处于正常模式。

https://serverfault.com/questions/694184/cannot-provide-permission-to-iis-iusrs-on-c-windows-temp/731681#731681

于 2015-10-26T13:20:05.967 回答