Link to home
Start Free TrialLog in
Avatar of dotnetpro
dotnetpro

asked on

System.Net.WebException:The request was aborted.The operation was timed out

Experts there is this SQL Reporting 2000 that i am dealing with here. When i press the submit button to generate report, after like a 2 or 4 minute gap i get this exception.

Any ideas ? I found this article but i do not know how to apply it to my scenario.

http://www.kbcafe.com/csharp/?guid=20060801062155
System.Net.WebException: The request was aborted: The operation has timed out.
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 Tartarus.WMS.Warehouse.WMS_Web.RSWebReference.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) in C:\Development\Projects\NEJ\NEJ WMS\Tartarus.WMS.Warehouse.WMS_Web\Web References\RSWebReference\Reference.cs:line 653
at Tartarus.WMS.Warehouse.WMS_Web.Classes.RenderReport.GetReportData(String reportPath, String reportFormat, ParameterValue[] parameters, String& retMimeType) in C:\Development\Projects\NEJ\NEJ WMS\Tartarus.WMS.Warehouse.WMS_Web\classes\RenderReport.cs:line 52
at Tartarus.WMS.Warehouse.WMS_Web.reporting.POSummarySelect.btnSubmit_ServerClick(Object sender, EventArgs e) in C:\Development\Projects\NEJ\NEJ WMS\Tartarus.WMS.Warehouse.WMS_Web\reporting\POSummarySelect.aspx.cs:line 190
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Open in new window

Avatar of ChetOS82
ChetOS82
Flag of United States of America image

Looks like the Render() method is making a web service call to a server that is not available.  You might try figuring out what the URL is of the web method and calling it in the browser.

It doesn't sound like it can be a problem with your code.
Avatar of dotnetpro
dotnetpro

ASKER

Actually it is i think referring to url http://localhost/ReportServer/ReportService.asmx
Now when i go to IIS, default web site, right click on ReporServer and select browse it list the directory contents.I think that should be the problem according to what you saying.
What happens if you go to that address in your web browser?
Server Application Unavailable

The web application you are attempting to access on this web server is currently unavailable.  Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Ok now when i browse it shows all XML. Not any list of web methods..
ASKER CERTIFIED SOLUTION
Avatar of dotnetpro
dotnetpro

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial