hoyong

导航

问题:未处理System.IO.FileNotFoundException

 

 

 

处理:

在VS2010上编译水晶报表提示找提示以下错误:
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.

只要在App.config中的
 <startup>
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
改成
 <startup useLegacyV2RuntimeActivationPolicy ="true">
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
就可以了。

posted on 2017-02-23 20:42  hoyong  阅读(576)  评论(0编辑  收藏  举报