Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot connect with RAS

Status
Not open for further replies.

achopra

Programmer
May 28, 2004
3
CA
I have CE v10 installed on a standalone machine, and am trying to get some simple RAS samples working (that I downloaded off the Crystal site). No matter what I do I always get the same following error. Btw, I get this error using in an ASP.net app for a windows app (I know its not the code because I have used different samples and tutorials which all give me the same result.

I did read about multi-homed machines and am wondering if this has to do with port numbers etc. since this is a winsock error. Any ideas would be greatly appreciated.

here is the error:

Error Type:
clientdoc.dll (0x80041015)
Failed to connect to server "127.0.0.1". Error returned from Windows Sockets API : 0.
 
Yes - my web server is running fine. I can run the other samples, as well as the CMS over the web, I have tested the web connectors successfully etc. I know I have other asp.net applications that work perfectly fine as well.

The issue also happens to me when I create a windows app and try to use RAS. It always fails with this error when I go to either open a report through ras or create a new one.

I have done this using sample code from the Crystal site (included below). I have the same error with other tutorials and samples as well. It is whenever I use RAS.

<%@ Language=VBScript CodePage=65001 %>

<%

reportName = "CE10EE_BeginHere.rpt"

Set objFactory = CreateObject("CrystalReports.ObjectFactory")

Dim path, iLen
path = Request.ServerVariables("PATH_TRANSLATED")
While (Right(path, 1) <> "\" And Len(path) <> 0)
iLen = Len(path) - 1
path = Left(path, iLen)
Wend

' Create a new ReportClientDocument object
Set Session("oClientDoc") = objFactory.CreateObject("CrystalClientDoc.ReportClientDocument")

' Specify the RAS Server (computer name or IP address) to use (If SDK and RAS Service are running on seperate machines)
Session("oClientDoc").ReportAppServer = "127.0.0.1"

' Open the report object to initialize the ReportClientDocument
Session("oClientDoc").Open path & reportName

Response.Redirect "CrystalReportsInteractiveViewer.asp"

%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top