cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to connect to Crystal Report Server 2008

Former Member
0 Kudos

Hi,

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
try
   {
   ReportDocument->Database;
   }
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.

Anthony

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Thank you for your answer.

I did specify the command-line option -ipport 1566 on the RAS, and modified the SDK side consequently, as mentionned.

The netstat confirmed that I am trying to connect to the correct machine and port. However, the connection state is "TIME_WAIT" on that port, and on every port related to the Crystal Server.

And I am still failing to connect to the RAS.

Any idea ?

Thank you

Anthony

0 Kudos

Hi Anthony,

Unfortunately there is no .NET components for Crystal Reports Server 2008. It was not released until SP1 for CR 2008 and Business Object Enterpise XI R3.1. It only shipped with the Java components.

The problem is SP1 for CRS is not expected to be released for another 3 or 4 months or so.Your only option is to upgrade to the BOE XI R3.1 or wait until the Service Pack 3.1 is released for CRS.

We just received an update from the program managers and although the Documents for CRS does not say anything about supporting an SDK/development it also doesn't say we do support it. Program Managers are discussing plans to release the SDK for CRS development. It may be with SP1 but we can't confirm that yet.

Thank you

Don

Edited by: Don Williams on Dec 10, 2008 1:32 PM

Answers (2)

Answers (2)

Former Member
0 Kudos

That explains my problem.

Thank you for the information.

Anthony

ted_ueda
Employee
Employee
0 Kudos

On the RAS server, specify the command-line option

-ipport 1566

to set the listener port to 1566 (you wouldn't necessarily pick 1566, mind you - check netstat for an unused port).

Then you'd specify the server name with port on the SDK side: "servername:port"

That will ensure you're trying to connect to the correct machine and port.

Sincerely,

Ted Ueda