系统提示未能加载文件或程序集 \dotnet1\crdb_adoplus.dll

Lytton_jing 2017-03-14 10:56:14
我用VS2010,c#开发了windows窗体控件库工程,使用到水晶报表,调试时出现如下问题
未能加载文件或程序集“file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET
Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll”或它的某一个依赖项。系统找不到指定的文件。

按照网上的说法我已经添加app.config了,如下内容,但是还是出现如上内容
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>

都已经装了,新建window窗体应用程序,弄上水晶报表,在app。config中加入
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
程序运行起来没有问题,我感觉在dll工程中手动加入app.config文件不起作用
...全文
438 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xdashewan 2017-03-14
  • 打赏
  • 举报
回复
引用 2 楼 ddjj_1980 的回复:
没有那个文件,新建winfrom工程就没有问题
得有啊,你引用了就得有这文件,不然就报错
Lytton_jing 2017-03-14
  • 打赏
  • 举报
回复
没有那个文件,新建winfrom工程就没有问题
xdashewan 2017-03-14
  • 打赏
  • 举报
回复
你这路径下有这文件吗?file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll

8,834

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 组件/控件开发
社区管理员
  • 组件/控件开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧