Visual Studio Crystal Report Error

//Visual Studio Crystal Report Error

Visual Studio Crystal Report Error

When changing to a dynamic report Crystal ReportĀ in Visual Studo 2010 at run time I got the following error message

Could not load file or assembly ‘file:///C:Program Files (x86)SAP BusinessObjectsCrystal Reports for .NET Framework 4.0CommonSAP BusinessObjects Enterprise XI 4.0win32_x86dotnet1crdb_adoplus.dll’ or one of its dependencies. The system cannot find the file specified.

The solution was the add the following to the app.config file

<startup useLegacyV2RuntimeActivationPolicy=”true”>

That resolved the problem on my development machine, to fix it on the end user’s machines I had to add this section

<runtime>

<assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″>

<dependentAssembly>

<assemblyIdentity name=”CrystalDecisions.CrystalReports.Engine” publicKeyToken=”692fbea5521e1304″/>

<bindingRedirect oldVersion=”14.0.2000.0″ newVersion=”12.0.2000.0″/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name=”CrystalDecisions.Enterprise.Framework” publicKeyToken=”692fbea5521e1304″/>

<bindingRedirect oldVersion=”14.0.2000.0″ newVersion=”12.0.1100.0″/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name=”CrystalDecisions.Enterprise.InfoStore” publicKeyToken=”692fbea5521e1304″/>

<bindingRedirect oldVersion=”14.0.2000.0″ newVersion=”12.0.1100.0″/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name=”CrystalDecisions.Shared” publicKeyToken=”692fbea5521e1304″/>

<bindingRedirect oldVersion=”14.0.2000.0″ newVersion=”12.0.2000.0″/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name=”CrystalDecisions.ReportSource” publicKeyToken=”692fbea5521e1304″/>

<bindingRedirect oldVersion=”14.0.2000.0″ newVersion=”12.0.2000.0″/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name=”CrystalDecisions.Windows.Forms” publicKeyToken=”692fbea5521e1304″/>

<bindingRedirect oldVersion=”14.0.2000.0″ newVersion=”12.0.2000.0″/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name=”CrystalDecisions.Web” publicKeyToken=”692fbea5521e1304″/>

<bindingRedirect oldVersion=”14.0.2000.0″ newVersion=”12.0.2000.0″/>

</dependentAssembly>

</assemblyBinding>

By | 2012-03-18T14:07:42+00:00 March 18th, 2012|Uncategorized|0 Comments

About the Author:

Leave A Comment