Skip to Content
0
Former Member
Jan 06, 2011 at 09:49 PM

Two versions of DLLs being loaded

30 Views

I am having a problem with this line in my code:

Dim myReport As Report = CType(myInfoObject, Report)

The error I am getting is:

Unable to cast object of type 'CrystalDecisions.Enterprise.InfoObject' to type 'CrystalDecisions.Enterprise.Desktop.Report'.

I have references in my project to

CrystalDecisions.Enterprise.Desktop.Report

CrystalDecisions.Enterprise.Framework

CrystalDecisions.Enterprise.InfoStore

According to their Properties, they are all version 10.0.3300.0.

In the output at the bottom of my Visual Studio IDE screen, I suspect the problem lies here:

As you can see, it is loading DLLs from both version 10.0.3300.0 and 12.0.1100.0. How do I fix this?

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Framework\10.0.3300.0__692fbea5521e1304\CrystalDecisions.Enterprise.Framework.dll'

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.InfoStore\10.0.3300.0__692fbea5521e1304\CrystalDecisions.Enterprise.InfoStore.dll'

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Desktop.Report\10.0.3300.0__692fbea5521e1304\CrystalDecisions.Enterprise.Desktop.Report.dll'

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.PluginManager\10.0.3300.0__692fbea5521e1304\CrystalDecisions.Enterprise.PluginManager.dll'

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Desktop.Report\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.Desktop.Report.dll'

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.InfoStore\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.InfoStore.dll'

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Framework\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.Framework.dll'

'WebDev.WebServer40.EXE' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.PluginManager\12.0.1100.0__692fbea5521e1304\CrystalDecisions.Enterprise.PluginManager.dll'

Edited by: marykDBA on Jan 6, 2011 10:50 PM