Click here to Skip to main content
15,886,735 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,
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
Posted

1 solution

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.
 
Share this answer
 
Comments
kumar9avinash 21-Aug-14 0:45am    
hi himanshu thaks for your reply,i want to know one thing that the application which i have built is on windowds 7 and i am trying to run it on XP,is this causing the error ?
himanshu agarwal 22-Aug-14 4:57am    
unless you are targeting any OS specific assembly, this should not be a reason.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900