简体   繁体   English

Crystal Report和Visual Studio 2013错误

[英]Error with Crystal Report and Visual Studio 2013

I was looking at this question:- FileNotFoundException occured while assign DataSource in CrystalReport 我在看这个问题:- 在CrystalReport中分配DataSource时发生FileNotFoundException

I have the same issue. 我有同样的问题。 I was not able to add a comment to get some clarification so I am posting this question. 我无法添加评论以进行澄清,因此我正在发布此问题。 I hope that is OK with the group. 我希望小组成员都可以。

The solution was to Try again after adding below section in your config:- 解决方案是在配置中添加以下部分后重试:-

<startup uselegacyv2runtimeactivationpolicy="true">
  <supportedruntime version="v4.0" />
</startup>

Can someone please inform me where is this config and how do I add the above section to this config? 有人可以告诉我此配置在哪里,以及如何将以上部分添加到此配置中?

Hope this makes sense. 希望这是有道理的。

Thanks, Edward 谢谢,爱德华

It's in the App.config file located in the solution explorer window. 它位于解决方案资源管理器窗口中的App.config文件中。

在此处输入图片说明

Edit the file by double clicking it 双击编辑文件

在此处输入图片说明

and add the property useLegacyV2RuntimeActivationPolicy="true" with its value inside the startup element. 并在启动元素中添加属性useLegacyV2RuntimeActivationPolicy="true"及其值。

在此处输入图片说明

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

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