异常抛出:'System.DllNotFoundException [英] Exception thrown:'System.DllNotFoundException

查看:235
本文介绍了异常抛出:'System.DllNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个项目在Visual Stuio 2008上运行,出了问题。然而,当我想在Visual Studio 2015的另一个项目构建中使用相同的DLL时,它提供无法加载DLL错误。



有没有人遇到过这个问题?

解决方案

确保该DLL与您运行的EXE位于同一个文件夹中。如果这不起作用,请尝试将DLL复制到常用搜索文件夹,如 C:\Windows\System32 ,以查看是否有帮助。


I have this project running on Visual Stuio 2008 with out issue. However when i want to use same DLL in another project build with Visual Studio 2015 it provides Unable to load DLL error.

Has anyone experienced this problem?

解决方案

Make sure that the DLL is in the same folder as the EXE that you run. If that doesn't work, try copying the DLL to a commonly-searched folder like C:\Windows\System32 just to see if that helps.

这篇关于异常抛出:'System.DllNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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