I recently learned about the crystal report and found the following error after compilation:
- Failed to Load file or assembly "file: // C: \ Program Files \ sap businessobjects \ Crystal Reports. 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 specified file.
Failed to Load file or assembly "file: // C: \ Program Files \ sap businessobjects \ Crystal Reports. 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 specified file.
After surfing the Internet, Baidu finds many problems. The solution is to add the following code in the app. config file:
[HTML]View plaincopyprint?
- <Startup uselegacyv2runtimeactivationpolicy = "true">
- <Supportedruntime version = "v4.0" SKU = ". netframework, version = v4.0"/>
- </Startup>
<Startup uselegacyv2runtimeactivationpolicy = "true"> <supportedruntime version = "v4.0" SKU = ". netframework, version = v4.0"/> </startup>
I don't quite understand what is going on, but the problem is fixed. I will write it down for now.
Error in crystal report compilation: "failed to Load file or assembly (from www. sysoft. CC)