1832353 - System.IO.FileLoadException when printing a report in a VS .NET application

SAP Knowledge Base Article - Public

1832353 - System.IO.FileLoadException when printing a report in a VS .NET application

Symptom

  • Deployed application throws the following error when the report is printed:

Application: <app_name>
Framework Version: v4.0.30319
Description: the process was stopped because of unmanaged exception
Exception Information: System.IO.FileLoadException

Environment

  • SAP Crystal Reports, developer version for Microsoft Visual Studio
  • Microsoft Visual Studio 2010

Cause

  • The app.config was missing tte following:

<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>

 

Resolution

  • Add the missing section to the app.config

Keywords

Crystal web application report VS 2010 VS2010 VS2012 VS 2012 , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio