我有很久以前创建的这个DLL,用于连接我开发的特定软件的数据库.我已经有4年多没有问题和无数的应用程序与这个DLL.
尝试部署我的最新创建,我收到以下错误:
System.IO.FileNotFoundException: Could not load file or assembly '***.dll' or one of its dependencies. The specified module could not be found.
Run Code Online (Sandbox Code Playgroud)
因此,对于我写过的每个dll,我总是制作一个简单的表单应用程序来测试该DLL本身.运行这个简单的应用程序产生了同样的错误.该DLL不会加载或使用除以下内容之外的任何内容:System,System.Data,System.XML.因此,就它的依赖性而言,我没有看到任何错误.
顺便说一句,一切都在开发站工作.问题仅限于部署站..Net和必要的可再发行组件,因为我用C++完成所有工作,所以部署和工作.
运行FUSLOGVW.exe显示一切正常.
运行depends.exe说:警告:由于延迟加载相关模块中缺少导出功能,至少有一个模块具有未解析的导入.
我已经尝试重写整个事情了.这产生了相同的结果.
有线索吗?
EDITS
以下是总错误消息:
See the end of this message for details on invoking \"
just-in-time (JIT) debugging instead of this dialog box.\"
************** Exception Text **************\"
System.IO.FileNotFoundException: Could not load file or assembly 'connectionTo.dll' or one of its dependencies. The specified module could not be found.\"
File name: 'connectionToJobboss32.dll'\"
at TESTConnection.Form1.button1_Click(Object sender, EventArgs …
Run Code Online (Sandbox Code Playgroud)