Skip to Content
0
Jun 23, 2022 at 08:20 PM

Unable to cast COM object of type

476 Views Last edit Jun 23, 2022 at 08:49 PM 2 rev

My Application (WEBAPI with Crystal Reports in Visual Studio 2019) runs fine in my local machine. However, when i deploy it to the test server. I am getting the below error when i run an API in the test environment. Test server has SAP Crystal Reports Runtime Engine 32 Bit Installed.

Error Details:

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

System.InvalidCastException: 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)).