在vb.net中执行Dynamic Crystal Report时出错,任何人都可以给我一个解决方案 [英] having an error while executing Dynamic Crystal Report in vb.net can anybody give me a solution to this

查看:39
本文介绍了在vb.net中执行Dynamic Crystal Report时出错,任何人都可以给我一个解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

{无法加载文件或程序集'文件:/// C:\\Program Files(x86)\\ SAP BusinessObjects \\ Crystal Reports for .NET Framework 4.0 \\ Common \\ SAP BusinessObjects Enterprise XI 4.0 \\win32_x86 \\dotnet1 \\crdb_adoplus.dll'或其依赖项之一。系统找不到指定的文件。:file:/// C :\\Program Files(x86)\\SAP BusinessObjects \\ Crystal Framework for .NET Framework 4.0 \\Common \\ SAP BusinessObjects Enterprise XI 4.0 \\win32_x86 \\ dotnet1 \\crdb_adoplus.dll}

{"Could not load file or assembly 'file:///C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win32_x86\\dotnet1\\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.":"file:///C:\\Program Files (x86)\\SAP BusinessObjects\\Crystal Reports for .NET Framework 4.0\\Common\\SAP BusinessObjects Enterprise XI 4.0\\win32_x86\\dotnet1\\crdb_adoplus.dll"}

推荐答案

adding the following lines to the app.config seems to fix the problem:<br />
<br />
    <startup useLegacyV2RuntimeActivationPolicy="true"><br />
         <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/><br />
<br />
     </startup>


adding the following lines to the app.config seems to fix the problem:













<?xml version="1.0"?>
<configuration>


<startup useLegacyV2RuntimeActivationPolicy="true">
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>

</startup>
</configuration>


这篇关于在vb.net中执行Dynamic Crystal Report时出错,任何人都可以给我一个解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆