水晶报表查看器无法找到DLL [英] crystal report viewer coud not find a DLL

查看:86
本文介绍了水晶报表查看器无法找到DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我在vs2010中有Crystal Report,然后我想在带有Crystal Report Viewer的窗体应用程序中显示.但是这样的错误将显示:

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

什么意思?!
Thanks

hi all
i have crystal report in vs2010, then i want to show in a form application with crystal report viewer.but an error like this will show:

Could not load file or assembly
''file:///C:\Program Files\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.

what it means?!
thanks

推荐答案

此消息是您在开发计算机上得到的吗?还是这是另一台机器?如果是另一台计算机,则需要确保该计算机已安装水晶报表.

另外,从消息的win32_x86部分开始,它似乎正在寻找32位的水晶报表.您需要确保已安装的Crystal报表也是32位的.如果计算机是64位的,则可能安装了64位的Crystal,因此找不到正确的dll.如果您的应用程序设置为以32位CPU为目标,则会发生这种情况.


----编辑----
我搜索了确切的错误消息,因为我知道几个月前也遇到了同样的问题...
它实际上与.Net 4框架有关.您需要在应用程序配置中添加一些xml:
< startup useLegacyV2RuntimeActivationPolicy ="true">
< supportedRuntime version ="v4.0"/>
< startup/>

这是对我有帮助的论坛的链接:
SAP论坛 [
Is this message something you are getting on the development machine? Or is this a different machine? If it''s a different machine you need to make sure THAT machine has crystal reports installed.

Also, from the win32_x86 part of the message, it looks like it''s looking for crystal reports for 32 bit. You''ll need to make sure that the crystal reports you have installed is also for 32 bit. If the computer is 64 bit, it may have installed crystal for 64 bit and therefore can''t find the right dll. This can happen if your application is set to target a 32 bit CPU.


---- Edit ----
I googled the exact error message because I know I''d gotten this same issue a few months ago...
It actually has to do with .Net 4 framework. You need to add a bit of xml to your app config:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
<startup/>

Here is the link to the forum that helped me:
SAP Forum[^]


这篇关于水晶报表查看器无法找到DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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