繁体   English   中英

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

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

尝试执行我的Web应用程序时,它引发以下错误。
它说Matrix.Data.dll无法加载。 我试图重建该程序集并再次引用它。 但是没用。
另外,它还显示警告“装配绑定日志记录已关闭”
与程序集绑定失败日志记录相关的性能损失是什么?

详细错误:

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

您的Accessibility.dll很可能已损坏。 即使以管理员身份,您也将无法删除该文件。

您必须进入安全设置,并将所有者从TrustedInstaller更改为其他用户,并为自己授予对该文件的权限。 完成后,从可运行的计算机中获取Accessibility.dll并替换损坏的版本。

最好的猜测是,Microsoft的安装程序损坏了DLL,因为没有用户有权编辑/删除/替换TrustedInstaller拥有的文件。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM