简体   繁体   English

System.IO.FileLoadException:无法加载文件或程序集

[英]System.IO.FileLoadException: Could not load file or assembly

While trying to execute my web application, it throws the following error. 尝试执行我的Web应用程序时,它引发以下错误。
It says Matrix.Data.dll could not load. 它说Matrix.Data.dll无法加载。 I tried to rebuild the assembly and reference it again. 我试图重建该程序集并再次引用它。 But no use. 但是没用。
Also, it is showing a warning 'Assembly binding logging is turned OFF' 另外,它还显示警告“装配绑定日志记录已关闭”
and what will be the performance penalty associated with assembly bind failure logging...? 与程序集绑定失败日志记录相关的性能损失是什么?

Error in detail: 详细错误:

System.IO.FileLoadException: Could not load file or assembly 'Matrix.Data, Version=5.0.3.16, 
Culture=neutral, PublicKeyToken=ed19106b2f44b5a8' or one of its dependencies. 
The located assembly's manifest definition does not match the assembly reference. 
(Exception from HRESULT: 0x80131040)

File name: 'Matrix.Data, Version=5.0.3.16, Culture=neutral, 
PublicKeyToken=ed19106b2f44b5a8'
at Matrix.Administration._Administration.DoRequest(Boolean& plReplacePlaceholders)
at Matrix.AppServerHTTPHandler.doRequestDefault()
 in D:\FX\AppServer\Appserver.vb:line 443
at AppServer.AppServerHTTPHandler.doRequest(Kernel pKernel) 
in D:\FX\AppServer\Appserver.vb:line 373
at AppServer.AppServerHTTPHandler.processRequest(HttpContext context) 
in D:\FX\AppServer\Appserver.vb:line 107

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated 
with assembly bind failure logging.
To turn this feature off, remove the registry value 
[HKLM\Software\Microsoft\Fusion!EnableLog].

Your Accessibility.dll is most likely corrupted. 您的Accessibility.dll很可能已损坏。 You will not be able to delete the file, even as Administrator. 即使以管理员身份,您也将无法删除该文件。

You must go into the security settings and change the owner from TrustedInstaller to a different user and give yourself permissions on the file. 您必须进入安全设置,并将所有者从TrustedInstaller更改为其他用户,并为自己授予对该文件的权限。 Once done, get an Accessibility.dll from a working computer and replace your corrupted version. 完成后,从可运行的计算机中获取Accessibility.dll并替换损坏的版本。

Best I can guess, an installer from Microsoft corrupted the DLL as no user has permission to edit/delete/replace files owned by TrustedInstaller. 最好的猜测是,Microsoft的安装程序损坏了DLL,因为没有用户有权编辑/删除/替换TrustedInstaller拥有的文件。

暂无
暂无

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

相关问题 : System.IO.FileLoadException: 无法加载文件或程序集“EntityFramework” - : System.IO.FileLoadException: Could not load file or assembly 'EntityFramework' System.IO.FileLoadException:无法加载文件或程序集 'System.Runtime.CompilerServices.Unsafe,版本 = 4.0.4.1 - System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1 System.IO.FileLoadException:无法加载文件或程序集'System.Data.SQLite - System.IO.FileLoadException: Could not load file or assembly 'System.Data.SQLite System.IO.FileLoadException - 无法加载文件或程序集 Microsoft.WindowsAzure.Storage - System.IO.FileLoadException - Could not load file or Assembly Microsoft.WindowsAzure.Storage System.IO.FileLoadException:无法加载文件或程序集“ Microsoft.AspNetCore.Mvc.Core,版本= 2.1.3.0” - System.IO.FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.1.3.0' Dockerized .NET 5 应用程序 - System.IO.FileLoadException:无法加载文件或程序集 - Dockerized .NET 5 Application - System.IO.FileLoadException: Could not load file or assembly 错误System.IO.FileLoadException:'无法加载文件或程序集'log4net,版本= 2.0.8.0在.NET Core中 - Error System.IO.FileLoadException: 'Could not load file or assembly 'log4net, Version=2.0.8.0 in .NET Core System.IO.FileLoadException:无法加载文件或程序集'Pkcs11Interop,版本= 3.3.0.0 - System.IO.FileLoadException: Could not load file or assembly 'Pkcs11Interop, Version=3.3.0.0 System.IO.FileLoadException:'无法加载文件或程序集'EntityFramework或其依赖项之一。 访问被拒绝。 - System.IO.FileLoadException: 'Could not load file or assembly 'EntityFramework or one of its dependencies. Access is denied.' System.IO.FileLoadException:无法加载文件或程序集Log4net - System.IO.FileLoadException: Could not load file or assembly Log4net
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM