我的项目期待垃圾箱中有一个dll,但它无法找到它

时间:2012-03-21 14:41:16

标签: .net .net-2.0 activereports

我已经从旧的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中?

2 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分:1)

看起来我正在使用的Active Reports(4.2.1.1238)的构建与Win7不兼容。我使用较新的版本(4.2.1.1261)重新安装了Active Reports,我不再收到错误。