如何解决此错误“无法加载文件或程序集”interop.MODi,version = 11.0.0.0,culture = neytral,publictokenkey = NULL。 " [英] how to solve this error "could not load file or assembly"interop.MODi,version=11.0.0.0,culture=neytral,publictokenkey=NULL. "

查看:260
本文介绍了如何解决此错误“无法加载文件或程序集”interop.MODi,version = 11.0.0.0,culture = neytral,publictokenkey = NULL。 "的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i在win表单应用程序中实现了OCR功能,在我的系统中工作正常但是当我在不同的系统中运行exe时它会给我以下错误



无法加载文件或程序集interop.MODI,版本= 11.0.0.0,culture = neytral,publickeytoken = null,系统dosenot找到该文件。



系统我安装了ms oofice和microsoft office document imaging。



plz帮帮我解决这个问题


i have implemented OCR functionality in a win form application, in my system its working fine but when i am running the exe in different system it give me the following error

could not load file or assembly"interop.MODI,version=11.0.0.0,culture=neytral,publickeytoken=null,the system dosenot find the file.

in both the system i have installed ms oofice with microsoft office document imaging.

plz help me to solve this prolem

推荐答案

如果找不到程序集或从属程序集,程序集加载会失败。此外,比较版本,文化,publickeytoken的程序集。加载时的名称。任何不匹配都会导致加载失败。



您可以启用融合日志以获取更多信息,这是一个解释相同的链接。调查托管程序集加载失败 [ ^ ]



此外,您可以使用ILSpy或DependencyWalker来检查系统上是否存在相关程序集。
An assembly load fails if an assembly or a dependent assembly is not found. Further, an assembly is compared for version, culture, publickeytoken besides its name while loading. Any mismatch would result in load failure.

You can enable fusion logs to get more information, here is a link that explains the same. Investigating Managed Assembly Load Failures[^]

Also, you may use ILSpy or DependencyWalker to check dependent assemblies exist on the system or not.


这篇关于如何解决此错误“无法加载文件或程序集”interop.MODi,version = 11.0.0.0,culture = neytral,publictokenkey = NULL。 "的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆