cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the Crystal Report dependency from 10.2 to 11.5 using config file

Former Member
0 Kudos

Hi,

We have an windows application in .net 2.0, which refers to Crystal Report 10.2 version. Now the dependency was being upgraded to 11.5. But we do not have the exact source code for the executable to change the dependency from 10.2 to 11.5.

I have installed the CR 11.5 to the testing machine and tried to open the appilcation. it failed saying CR 10.2 dlls were missing

Then I changed the .net config files to change the dependency assembly as follows

<runtime>

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

<dependentAssembly>

<assemblyIdentity name="CrystalDecisions.CrystalReports.Engine" publicKeyToken="692fbea5521e1304" culture="neutral" />

<bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="CrystalDecisions.ReportSource" publicKeyToken="692fbea5521e1304" culture="neutral" />

<bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="CrystalDecisions.Shared" publicKeyToken="692fbea5521e1304" culture="neutral" />

<bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>

</dependentAssembly>

<dependentAssembly>

<assemblyIdentity name="CrystalDecisions.Windows.Forms" publicKeyToken="692fbea5521e1304" culture="neutral" />

<bindingRedirect oldVersion="10.2.3600.0" newVersion="11.5.3700.0"/>

</dependentAssembly>

</assemblyBinding>

</runtime>

Now the application launched with out any issues. I thought the problem was sorted out.

But when I tried to generate the report, there comes the problem

During the report generation, I am getting the following error

-


Crystal Reports

-


An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.

-


OK

-


I do not want to install the 10.2 redistributable in teh machine also do not want to re-compile the sources changing the dependency

Is there any way to achieve this ?

Any help is much appreciated.

Thanks

Edited by: Balaji Narasimhan on Aug 3, 2009 5:28 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

No way that I know of. I believe once you change the dependency, you will have to recompile the project. Installing CR 10.2, may get this to work, but the app will most likely use the 10.2 references. Let's see if anyone else has any ideas.

Ludek

Answers (0)