AspNet无法找到指定的模块 [英] AspNet Can not find the specified module
问题描述
Hi
我正在使用c#和framework v4.0在新的WebProject中工作
我作为参考添加了一个dll(c ++ / cli),当我在浏览器中显示该网站时,会出现错误:
无法加载文件或程序集MyDll.dll或其中一个依赖项。找不到指定的模块。
之前,我在项目中引用dll(C ++ / CLI)时遇到了问题,但我认为它已经失败了解决了将c ++项目从DEBUG更改为RELEASE并构建新的dll,但是另一个错误取代了旧的
有谁知道为什么我的WebProject无法找到dll时我刚刚添加它作为参考?
Hi
Im working in a new WebProject using c# and framework v4.0
I add as a reference a dll(c++/cli), and when I what the site in the browser, an error appears:
Could not load file or assembly 'MyDll.dll' or one of its dependencies. Can not find the specified module.
Before, I had a problem referencing a dll(C++/CLI) from a project, but I think it whas solved changing the c++ project from DEBUG to RELEASE and to build a new dll, but another error replaced the old one
Does anybody knows why my WebProject cannot find the dll when I just added it as a reference?
推荐答案
这是如何解决你的问题
1.首先在bin文件夹中添加你的dll br />
2.添加对此dll的引用
3.如果没有添加IF引用,则从引用中移除所有dll引用(最近的选项卡)
以及请注意,从obj文件夹中删除所有文件
然后再添加dll和refeence,然后清理,重建应用程序
这将解决您的问题。
This is how to resolve your problem
1. First add your dll in bin folder
2. Add reference to this dll
3. IF reference isnot being added then remove all dll references from reference (recent tab)
and also note that remove all files from obj folder
and then again add dll and refeence and then clean,rebuild application
this will def solve your problem.
这篇关于AspNet无法找到指定的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!