cancel
Showing results for 
Search instead for 
Did you mean: 

Error deploying a Crystal Reports for VS 13.0.22, ASP.Net, application on a shared server

Former Member
0 Kudos

Error from Crystal Reports for Visual Studio 13.0.22, framework 4.52, when deployed to server 2008 x-86. All should be 32-bit. The steps I took follow:

Copied the following dlls to the bin folder:

  • CrystalDecisions.CrystalReports.Engine
  • CrystalDecisions.ReportAppServer.ClientDoc
  • CrystalDecisions.ReportSource
  • CrystalDecisions.Shared
  • CrystalDecisions.Web

    -

    ASP.Net references were recreated referencing the bin folder. Properties of the references were set to Copy Local and Specific Version: True; Embed Interop Types: False. After creating the reference, the Path changed to: C:\Program Files (x86:

    Commented out Crystal Report setting in the Web.Config except for:

<locationallowOverride="true">

<appSettings>

<addkey="CrystalImageCleaner-AutoStart"value="true"/>

<addkey="CrystalImageCleaner-Sleep"value="60000"/>

<addkey="CrystalImageCleaner-Age"value="120000"/>

</appSettings>

</location>

After running it appeared that a version of the Crystal Reports Runtime had to be installed on the server. Since there would be multiple application using different versions of Crystal Reports, I install 13.0.19.

I am now getting the following error:

Unable to cast COM object of type 'CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass' to interface type 'CrystalDecisions.ReportAppServer.Controllers.ISCRReportSource'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{31E7715A-8AD0-4D1C-958E-C1BE0A6F2D0C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Welcome to dll hell now that you are trying to use multiple versions of CR for VS on the same PC.

It will never work, all runtime and applications must use the the same version and be compiled using the same version.

And you cannot manually copy CR dll's, must use the MSI redist packages to install all of the runtime which generates multiple registry entries and register multiple COM dll's.

Don

Answers (0)