Quantcast
Channel: SCN: Message List - Software Support and Maintenance
Viewing all articles
Browse latest Browse all 2823

Crystal Reports and .NET 4.0

$
0
0

Hello!

 

After upgrading our .NET applications to .NET 4.0 we started getting errors from Crystal Reports.

At first there was a problem with a DataSourceException being thrown. This was resolved by installing Support Pack 15 from here SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
and upgrading my project to the newer version. But now I get another error. When my application is run I get this error in the Windows log.

 

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.IO.FileNotFoundException

   at System.Reflection.RuntimeAssembly._nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)

   at System.Reflection.RuntimeAssembly.nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)

   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)

   at System.Reflection.RuntimeAssembly.InternalLoadFrom(System.String, System.Security.Policy.Evidence, Byte[], System.Configuration.Assemblies.AssemblyHashAlgorithm, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)

   at System.Reflection.Assembly.LoadFrom(System.String)

   at CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr)

 

When googling this issue alot of people have recommended to add this to the application.config file.

 

  <startup useLegacyV2RuntimeActivationPolicy="true">

    <supportedRuntime version="v4.0"/>

  </startup>

 

That didn't help. I even named the config file to the same as the .exe and included it in the executing folder.

 

The actual Crystal Reports calls are in a separate DLL that the .exe is using. But I hope that shouldn't be a problem. How do I resolve this issue?

 

Regards/Per


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>