The underlying connection was closed: An unexpected error occurred on a receive

Hi,
I use RS webservice to generate the report from VB.NET Windows application. This report would take some 5 mins to generate. I get the following error
I set webservice time out to some 1800000 (30 mins) Still it fails. How can I solve it . Is this something to do with connectiontimeout of default web site

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive.
   at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at ReportWebReference.ReportingService.Render(String Report, String Format, String HistoryID, String DeviceInfo, ParameterValue[] Parameters, DataSourceCredentials[] Credentials, String ShowHideToggle, String& Encoding, String& MimeType, ParameterValue[]& ParametersUsed, Warning[]& Warnings, String[]& StreamIds)
Thanks,
Vasanth


Answer this question

The underlying connection was closed: An unexpected error occurred on a receive

  • Lo, Kuei-yang

    It's possible that the Report Server web service is crashing because of an out of memory condition. Can you monitor private bytes into w3wp.exe when this report is executing


  • mikelyc

    Looks like connectiontimeout of default website where reportservice is running. If I set connectiontimeout of default website to higher one, report is getting generated. Is there any other way to set it only for this request rather than at website level
    Thanks

  • The underlying connection was closed: An unexpected error occurred on a receive