如何加载丢失的DLL [英] How do I load missing DLL
本文介绍了如何加载丢失的DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序抛出System.IO.FileNotFoundException,无法加载文件或程序集,
我将dll粘贴到具有相同版本的app文件夹,并且我得到了badImageFormatException。
如何解决这个问题。
我尝试过:
我将dll粘贴到app文件夹并再次执行程序但后来我收到此错误System.BadImageFormatException
解决方案
将项目的目标设置为x86。
My application threw System.IO.FileNotFoundException,Could not load file or assembly,
I pasted the dll to the app folder with same version and the I got badImageFormatException.
How do i solve this problem.
What I have tried:
I pasted dll to the app folder and execute the program again but then I got this error System.BadImageFormatException
解决方案
Set the project's target to x86.
这篇关于如何加载丢失的DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文