[英]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.