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

.NET ProgrammingEditors IDEsMicrosoft SQL Server

Avatar of undefined
Last Comment
dotnetpro

8/22/2022 - Mon
ChetOS82

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.
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.
ChetOS82

What happens if you go to that address in your web browser?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
dotnetpro

ASKER
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.
dotnetpro

ASKER
Ok now when i browse it shows all XML. Not any list of web methods..
ASKER CERTIFIED SOLUTION
dotnetpro

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.