简体   繁体   English

水晶报表:找不到文件异常

[英]Crystal Report : File not found exception

The solution cannot find the correct version of crystal report 解决方案找不到正确版本的Crystal报表

I want to run a project which was developed in another system and I need to get it run in my system. 我想运行在另一个系统中开发的项目,并且需要使其在我的系统中运行。 There were some references already missing in the solution, So I downloaded the missing reference and added to the solution. 解决方案中已经缺少一些参考,因此我下载了缺少的参考并将其添加到解决方案中。 The solution was having a missing reference to crystal report dlls So I downloaded the crystal report and added the dlls, the solution built just fine. 解决方案缺少对Crystal报表dll的引用,因此我下载了Crystal报表并添加了dll,该解决方案构建得很好。 But when it comes to crystal report it gives an exception that the file was not found. 但是当涉及到水晶报表时,它给出了一个例外,即找不到该文件。 There is a mismatch between version of crystal report that I added as reference and version shown in exception. 我添加为参考的Crystal报表版本与异常显示的版本之间不匹配。 I don't have the old version of dll that the exception is referring to 我没有异常所指的旧版dll

在此处输入图片说明

This is the version of crystal report I've added 这是我添加的水晶报表的版本

在此处输入图片说明

This is the exception I am getting 这是我得到的例外

Can anyone tell me how to correct this version mismatch and correct this exception 谁能告诉我如何更正此版本不匹配并更正此异常

You need to remove the 2000 assemblies and add the 3500 versions, check your app.config file. 您需要删除2000个程序集并添加3500版本,然后检查app.config文件。

Set the dll as the atribute "Copy Local" to true . 将dll设置为“复制本地”属性为true

Also make sure you are running VS as Administrator. 还要确保您以管理员身份运行VS。

As seen here and here . 正如在这里这里所见。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM