我用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文件不起作用