Skip to Content
0
Former Member
Oct 01, 2009 at 02:11 PM

Crystal Server 2008 V1 : Failed to connect to server

68 Views

I downloaded the RAS2008 V1 trial version in order to test it in our .NET SDK environment. But after many many attempts, I am still unable to get the RAS to work.

The RAS is installed on a Windows Server 2003 machine, and all .NET components have been installed in the first place (IIS, .NET framework, ASP.NET).

I wrote a very smal C# test program in Visual Studio 2005 to try communicating with the RAS and everytime I get the following error : System.Runtime.InteropServices.COMException (0x80041015): Failed to connect to server.

My code is very simple :

ReportDocument Doc;
Doc = new ReportDocument();
Doc.ReportAppServer = "<ServerName>";
Doc.FileName = "<Path>\report.rpt";
Doc.Database.Tables[0].Location = "<Path>\report.xml";
Doc.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "<path>\report.pdf");

( 1500 character limit and then Forum reformats the page )

See below for the rest of this post

Edited by: Don Williams on Oct 1, 2009 11:05 AM