Skip to Content

Unable to cast COM object of type ... to interface type ...

Feb 27 at 09:15 AM


avatar image

Our customer is not able to print reports, and here is the situation:

Our application is in Microsoft Access 2000. We have developed a .NET COM object library to interface to Crystal Reports, current version is 13.0.21. This system works for all customers where we have implemented it, except for one.

They are running terminal server on Windows Server 2008 R2 standard SP1. Microsoft .NET version is 4.7. Microsoft Visual C++ 2015 Redistributable (x86/x64) 14.0.24212.0 and Microsoft Visual C++ 2013 Redistributable (x86/x64) 12.0.21005.1 have been installed. SAP Crystal Reports runtime 32-bit has been installed, as well as the required KP2999226 update for Windows.

When I try to preview a report, the following error message is displayed:

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)).

This customer also has another server, where this error does not occur, we are able to print reports on that server. This server is not a terminal server. The specifications are:

Windows Server 2012 R2 datacenter, Microsoft .NET 4.5.2, Microsoft Visual C++ 2017 Redistributable (x86/x64) 14.10.25008, Microsoft Visual C++ 2013 Redistributable (x86/x64) 12.0.30501, SAP Crystal Reports runtime 32-bit, KB2999226 not in the list of installed updates.

Our COM object library targets .NET 4.5.2.

I have read the following page:

As far as I know we comply to all requirements: KB2999226 was installed, we have removed all old CR assemblies and added the new version. And remember, the system works on all servers where we have implemented it, except for this one terminal server.

Please help me with this issue.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers