Could not load file or assembly '***' or one of its does not match the assembly reference
来源:互联网 发布:python中matplotlib 编辑:程序博客网 时间:2024/06/02 13:19
这几天学习crack,呵呵。它是一个组件。打好patch之后,运行它自带的demo程序,运行后一个错误,如下所示:
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. Could not load file or assembly '***, Version=*.*.*.*, Culture=neutral, PublicKeyToken=*****' or one of its does not match the assembly reference. (Exception from HRESULT: 0x80131040).
仔细的想了一下,突然有点明白了。原来demo程序引用的是是“原来的经过签名的程序集”,而我在将其从GAC卸载并向其可执行文件所在的路径复制了一个打过补丁的程序集之后,可执行文件虽然能够找到破解后的程序集,但是与它所希望的并不一致,简单的说就是demo.exe引用的程序集与CLR loader所找到的程序集不匹配。
解决方法:
重新编译demo程序,移除对原程序集的引用,而改为对打过补丁的程序集的引用,重新构建,执行,OK...
后记:
在MSDN中也有人问过这个问题,请参考http://forums.microsoft.com/msdn/ShowPost.aspx?siteid=1&PostID=71023。
- Could not load file or assembly '***' or one of its does not match the assembly reference
- Could not load file or assembly 'App_Web_xxxx' or one of its dependencies. The system cannot find the file specified.
- Could not load file or assembly "xxx" or one of its dependencies. The system cannot find the file sp
- Could not load file or assembly 'XXX' or one of its dependencies.
- Exception about "Could not load file or assembly Namespace.Components' or one of its dependencies."
- Could not load file or assembly 'XXX' or one of its dependencies.
- Could not load file or assembly ' .dll_newdevelop' or one of its dependencies 解决办法
- Could not load file or assembly "\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies.
- 网站部署 Could not load file or assembly 'XXX' or one of its dependencies. 拒绝访问。
- Could not load file or assembly'System.Data.SQLite.dll' or one of its depedencies
- BadImageFormatException : Could not load file or assembly or one of its dependencies.
- Could not load file or assembly 'XXX' or one of its dependencies
- Could not load file or assembly 'xxx' or one of its dependencies.
- iis站点运行错误:Could not load file or assembly 'EntityFramework' or one of its dependencies.
- Parser Error Message: Could not load file or assembly 'NameSpace' or one of its dependencies. The system cannot find the file sp
- “Could not load file or assembly'OracleDAL' or one of its dependencies. 系统找不到指定文件”解决方法
- Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies.解决方法
- Could not load file or assembly 'XXXXXXXX' or one of its dependencies. 试图加载格式不正确的程
- javabeans封装数据库连接操作
- MySQL中数据表操作详解
- EJB的相关知识点
- http.conf配置文件详解
- 真的来了,真的走了
- Could not load file or assembly '***' or one of its does not match the assembly reference
- 数组怎么定义
- 一个网络工程师获得CCNP认证后的成功求职记
- 5.12五岁小童被救失踪 崩溃母亲人肉搜索寻子[转贴]
- 单例模式瞎想
- DataList分页(转载)
- 超绝面试技巧,学会了这些包你被录用
- 面试时最难的25个问题
- 爱到不能爱时