Skip to Content
Former Member
Dec 09, 2008 at 03:47 PM

Failed to connect to Crystal Report Server 2008



I have been accessing Crystal RAS 10, and then RAS XIr2, for a long time using the following code. I recently switched to Crystal RAS 2008 and I am now unable to connect to the server. Could you please help out on this issue ?

ReportDocument->ReportAppServer = gcnew System::String("server2008");

                          // Ping the RAS Server to make sure that it is alive
catch (System::Exception^ e)
   CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80041015): Failed to connect to server "server2008".
   Error returned from Windows Sockets API : 0.    
   Ó CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)    
   Ó CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath,    Int32 Options)    
   Ó CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()    --- Fin de la trace de la pile d'exception interne ---    
   Ó CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()    
   Ó CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)    
   Ó CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()    Ó CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database()   
   Ó cr_CrystalReport_p.SetReportDocument(cr_CrystalReport_p* , SByte* ReportFileName) in r:prog ichcrystalcr_server.cpp:line 544

This very same code worked with previous versions of the RAS. Has something changed with the way to connect to the RAS 2008 ? (I am able to ping successfully the RAS 2008.)

I thought the error could be due to the node or access permissions, but couldn't solve that issue.

Is there a way to get more details on that error by calling some other function ?

Thank you very much for your help.