访问路径"C:\ WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\cbnonreg\fc933fca\bbf91eea"被拒绝

17 asp.net webserver

我收到了错误

访问路径"C:\ WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\cbnonreg\fc933fca\bbf91eea"被拒绝.

每当我尝试访问我新部署的网站时.
我看着路径,发现它/cbnonreg\fc933fca\bbf91eea不存在.
请问我该怎么办?

Mun*_*Mun 14

这听起来像权限问题.确保ASPNET帐户具有对Temporary ASP.NET Files文件夹的完全访问权限.如果您的问题仍然存在,您还可以尝试运行'aspnet_regiis -i'命令重新安装框架,该框架还应重置文件权限.

如果做不到这一点,您可以尝试使用Process Monitor并过滤到aspnet_wp.exe进程以检查进程尝试执行的操作,并相应地更新文件权限.

  • aspnet_regiis -i为+1,它通常可以解决这个问题. (3认同)

小智 12

在我的情况下,如果我继续,例如“mscorlib.dll 未加载”,则会出现更多异常。基于此,我在这里找到了有效的解决方案:https : //stackoverflow.com/a/27446877

“转到工具、选项、调试、常规、仅启用我的代码”。

根本原因分析:我意识到在先前尝试调试配置之后,我试图在 IIS Express 下测试发布配置(当然没有调试)。我也在玩用于发布的 Web.config 转换。VS 要求我在应用启动时禁用 Just My Code。当我想回到 Debug 时,我开始收到引用的错误。此线程中的所有解决方案建议均未成功。


Jes*_*ler 7

之所以收到此错误,是因为我已在Visual Studio的“异常设置”窗口中打开了所有“公共语言运行时异常”。

这必须是作为ASP.NET正常流的一部分触发的异常之一。如果这是您的问题(或者,如果您不知道“例外设置”窗口的功能,并且想要将其重置为默认值),则应该打开“例外设置”窗口,然后单击“将列表还原为默认设置”顶部的“”按钮,或者至少取消选中您不希望调试器中断的异常。


cra*_*TOR 6

在Windows 8上,您收到此错误

Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation.  All rights reserved.
Start installing ASP.NET (4.0.30319.17929).
This option is not supported on this version of the operating system.  Administr
ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Win
dows Features On/Off" dialog,  the Server Manager management tool, or the dism.e
xe command line tool.  For more details please see http://go.microsoft.com/fwlin
k/?LinkID=216771.
Finished installing ASP.NET (4.0.30319.17929).
Run Code Online (Sandbox Code Playgroud)

要修复上面的错误(Windows 8),请运行以下命令:

dism /online /enable-feature /featurename:IIS-ASPNET45
Run Code Online (Sandbox Code Playgroud)