I am using VS 2015 with Crystal Reports version 13.0.16.1954. When attempting to set a report data source in a WCF service I get the following error: “Message: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll Additional information: Could not load file or assembly 'file:///C:\Program Files (x86)\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.” In several other posts I see that users were able to get past this issue in one of two ways: 1. By adding useLegacyV2RuntimeActivationPolicy="true" 2. By copying crdb_adoplus.dll from their win32_x86 directory into a dotnet1 folder I tried both of these solutions and am now getting a different error: “System.IO.FileLoadException was unhandled Message: An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll Additional information: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.“ On the other posts that I read users suggest that this is a .Net 4 issue. The code I am developing must have a Target Framework version of 4.6.1. Is there a way to get around this in the specific framework version I must use?
↧