我试图在 VS2012 中打开 VS2008 版本的应用程序,同时运行必须生成 Crystal 报告的应用程序时出现错误:
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.
我可以看到 Crystal 报告很好。 我已经在 appconfig 文件中进行了更改:
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup></configuration>
所以请指教。 谢谢
请您参考如下方法:
修改您所有的 app.config。(如果不止一个)
之前
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
</configuration>
之后
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
</configuration>
