简体   繁体   English

无法加载文件或程序集{此处的程序集名称} 或其依赖项之一。 访问被拒绝

[英]Could not load file or assembly {assembly name here} or one of it's dependencies. Access is denied

So sometimes our web servers (Windows Server 2008, IIS 7.5) will randomly get this error on a really really old .net 2.0ish asp.net/classic asp web site that we have.因此,有时我们的 Web 服务器(Windows Server 2008、IIS 7.5)会在我们拥有的非常旧的 .net 2.0ish asp.net/classic asp 网站上随机出现此错误。

Normally an IIS reset will clear up the issue, but this issue is now starting to affect our production servers (can't really IIS reset these in the middle of the day) and it also seems to be happening more often every where else.通常 IIS 重置会解决这个问题,但这个问题现在开始影响我们的生产服务器(IIS 不能在中午真正重置这些),而且它似乎在其他地方更频繁地发生。

So I've been looking into possible fixes for this issue, but the only one that seems to be popping up everywhere is that if I grant NETWORKSERVICE/IIS_WPG full control over the temporary asp.net files it should just fix itself.因此,我一直在寻找针对此问题的可能修复方法,但似乎无处不在的唯一修复方法是,如果我授予 NETWORKSERVICE/IIS_WPG 对临时 asp.net 文件的完全控制权,它应该自行修复。 Last I checked, this wasn't really a good idea as you really didn't want your web applications to have full control over anything (especially not on a production web server).最后我检查了一下,这不是一个好主意,因为您真的不希望您的 Web 应用程序完全控制任何东西(尤其是不在生产 Web 服务器上)。

Any guidance on this issue would be appreciated.任何有关此问题的指导将不胜感激。

Thanks, Alex谢谢,亚历克斯

Example Errors:示例错误:

Server Error in '/' Application. “/”应用程序中的服务器错误。

Could not load file or assembly 'Csla.Extension' or one of its dependencies.无法加载文件或程序集“Csla.Extension”或其依赖项之一。 Access is denied.访问被拒绝。 Description: An unhandled exception occurred during the execution of the current web request.说明:在执行当前 Web 请求期间发生未处理的异常。 Please review the stack trace for more information about the error and where it originated in the code.请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Csla.Extension' or one of its dependencies.异常详细信息:System.IO.FileLoadException:无法加载文件或程序集“Csla.Extension”或其依赖项之一。 Access is denied.访问被拒绝。


Could not load file or assembly 'AjaxControlToolKit' or one of its dependencies.无法加载文件或程序集“AjaxControlToolKit”或其依赖项之一。 Access is denied.访问被拒绝。 Description: An unhandled exception occurred during the execution of the current web request.说明:在执行当前 Web 请求期间发生未处理的异常。 Please review the stack trace for more information about the error and where it originated in the code.请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'AjaxControlToolKit' or one of its dependencies.异常详细信息:System.IO.FileLoadException:无法加载文件或程序集“AjaxControlToolKit”或其依赖项之一。 Access is denied.访问被拒绝。

Source Error: [No relevant source lines]源错误:[没有相关的源代码行]

Source File:源文件:

c:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\root\\2794b922\\App_Web_search.aspx.cdcab7d2.jqmd63vs.0.cs c:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\root\\2794b922\\App_Web_search.aspx.cdcab7d2.jqmd63vs.0.cs

I think your problem is with IIS, in regards with what permission it has to folders(eg. project folders).So check your application which application pool its in. So you can give the appropriate rights to the account in that pool.我认为您的问题出在 IIS 上,关于它对文件夹(例如项目文件夹)的权限。因此,请检查您的应用程序所在的应用程序池。这样您就可以为该池中的帐户授予适当的权限。 By default in IIS7, the account is NETWORK SERVICE.默认情况下,在 IIS7 中,帐户是 NETWORK SERVICE。

Then you would essentially go to the relevant folders and allow read/write access or whichever needed to the account.然后,您基本上会转到相关文件夹并允许读/写访问权限或帐户所需的任何权限。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集或其依赖项之一。 拒绝访问 - Could not load file or assembly or one of its dependencies. Access is denied 无法加载文件或程序集“ businesslogic”或其依赖项之一。 拒绝访问 - Could not load file or assembly 'businesslogic' or one of its dependencies. Access is denied 无法加载文件或程序集“ Moxiecode.TinyMCE”或其依赖项之一。 拒绝访问 - Could not load file or assembly 'Moxiecode.TinyMCE' or one of its dependencies. Access is denied 如何解决无法加载文件或程序集'Glimpse.Core'或其依赖项之一。 访问被拒绝 - how to solve Could not load file or assembly 'Glimpse.Core' or one of its dependencies. Access is denied 无法加载文件或程序集“Microsoft.CodeDom.Providers.DotNetCompilerPlatform 或其依赖项之一。” 访问被拒绝 - Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform or one of its dependencies. Access is denied System.IO.FileLoadException:'无法加载文件或程序集'EntityFramework或其依赖项之一。 访问被拒绝。 - System.IO.FileLoadException: 'Could not load file or assembly 'EntityFramework or one of its dependencies. Access is denied.' Umbraco 7-无法加载文件或程序集“ Microsoft.IdentityModel”或其依赖项之一。 拒绝访问 - Umbraco 7- Could not load file or assembly 'Microsoft.IdentityModel' or one of its dependencies. Access is denied 无法加载文件或程序集“ICSharpCode.SharpZipLib”或其依赖项之一。 访问被拒绝 - Could not load file or assembly 'ICSharpCode.SharpZipLib' or one of its dependencies. Access is denied 无法加载文件或程序集“System.Web,Version = 4.0.0.0,Culture = neutral”或其依赖项之一。 访问被拒绝 - Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral' or one of its dependencies. Access is denied 无法加载文件或程序集“ xxxLib”或其依赖项之一。 BadImageFormatException - Could not load file or assembly 'xxxLib' or one of its dependencies. BadImageFormatException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM