Skip to Content
0
Former Member
Sep 24, 2012 at 02:09 AM

RAS 2011 - Failed to receive reply from server "DEV".

43 Views

Hi

I just install the Crystal Report Server 2011 and I try to create a report with the below code and have the error Can some please help

<%@ Import namespace="CrystalDecisions.ReportAppServer.ClientDoc" %>


<%


Dim ReportPath as String = "d:\website\test\returns.rpt"
Dim path As Object = DirectCast(ReportPath, Object)

Dim rcd As ReportClientDocument = New ReportClientDocumentClass()

rcd.ReportAppServer = "localhost:6400"

rcd.New()
Dim reportDirectory As String = "C:\temp"
Dim reportDir As Object = DirectCast(reportDirectory, Object)
rcd.SaveAs("MyNewUnmanagedReport.rpt", reportDir, CInt(CdReportClientDocumentSaveAsOptionsEnum.cdReportClientDocumentSaveAsOverwriteExisting))
rcd.Close()


%>

And Below is the error message

Failed to receive reply from server "DEV".
Error returned from Windows
Sockets API recv(replySize) : 10054.

Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.

Exception Details:
System.Runtime.InteropServices.COMException: Failed to receive reply from
server "DEV".
Error returned from Windows Sockets API recv(replySize) :
10054.

Source Error:




Line 21: Line 22: Line 23:      rcd.New() Line 24:      'Dim reportDirectory As String = "C:\temp" Line 25:      'Dim reportDir As Object = DirectCast(reportDirectory, Object)