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

发布于 2024-11-06 06:48:21 字数 948 浏览 1 评论 0原文

每当我想从本地主机运行我的应用程序时 它会产生以下奇怪的错误

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

亽野灬性zι浪 2024-11-13 06:48:21

以下是修复该问题的步骤:

转到 C:\Windows

右键单击​​临时文件夹

单击属性

转到安全性

授予 CREATOR OWNER 组完全控制权。

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.

懵少女 2024-11-13 06:48:21

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

[这就是我解决的方法]
1-运行cmd AS admin(保持打开状态)。
2- 打开任务管理器并KILL 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/问题/694184/无法向-iis-iusrs-on-c-windows-temp/731681#731681提供权限

for those who cant give FULL CONTROL to c:\windows\temp like me

[this is how i solved]
1- run cmd AS admin (keep it open ).
2- open task manager and KİLL explorer.exe.
3- goto previously opened cmd. write explorer.exe hit enter.
4- go to c:\windows temp (right click)>properties ->security
5- now you will be able to change \IIS_IUSRS to Full Control

note: some application may give error about elevated exploer.exe . it will be fixed after restart.

if you dont wanna restart;
[take explorer.exe out of Administrator mode]
1- goto previosly opened task manager. kill explorer.exe
2- in task manager file-> start new process write there explorer.exe
3- now the explorer.exe is in normal mode.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文