1

我已经将一个项目从我的旧 XP 机器复制到我的新 Win7 机器。这是一个针对 .net 2.0 框架的控制台应用程序。它使用一个名为 Active Reports 的报告工具。Active Reports 在项目中引用的 Program Files 目录中有一系列 dll。项目运行时出现错误

Could not load file or assembly 'file:///C:\PROJECTPATH\bin\Debug\ActiveReports.Interop.Dll' or one of its dependencies. The system cannot find the file specified.

这个 dll 不需要放在 bin 中,当我将它复制到那里时,项目甚至都没有构建。

为什么 VS 期望 dll 在 bin 中?

4

2 回答 2

1

检查项目引用中对 Active Report DLL 的引用是否存在警告。win7 机器上的路径可能与 XP 机器上的路径不同。

于 2012-03-21T14:46:58.350 回答
1

看起来我使用的 Active Reports 版本(4.2.1.1238)与 Win7 不兼容。我使用较新的版本 (4.2.1.1261) 重新安装了 Active Reports,但不再出现错误。

于 2012-03-21T15:19:46.833 回答