473,503 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout error on webservice client

I'm getting timeout error in my client application (asp.net client) when I
call a web service that is taking some time (2 - 3 minutes).
How can I configure the timeout limit?
Current configuration, these settings doesn't seem to have any affect:
Web.config <sessionState timeout="20"/>
IIS 5 configuration, ASP Script timeout = 6000 seconds.

BR
Johanna Turku

Exception Details: System.Net.WebException: The operation has timed-out.

Stack Trace:
[WebException: The operation has timed-out.]
System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest
request)

System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest
request)
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)

tcmXMLProto2Tester.localhost1.tcmXML.getAssemblyQu antityList(AssemblyTypeEnum
AssemblyType, Int32 TemplateElementFilter, Int32 InstanceElementFilter) in
c:\inetpub\wwwroot\TCMServerWS\tcmXMLProto2Tester\ Web
References\localhost1\Reference.vb:230
tcmXMLProto2Tester.WebForm1.getAssemblyQuantityLis t2_Click(Object sender,
EventArgs e) in
c:\inetpub\wwwroot\TCMServerWS\tcmXMLProto2Tester\ WebForm1.aspx.vb:669
System.Web.UI.WebControls.Button.OnClick(EventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)
System.Web.UI.Page.ProcessRequestMain()
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

Mar 14 '06 #1
1 3123
Greetings Sebitti,

You can adjust the HTTP timeout, which is set to a default of 90
seconds in the machine.config file, by modifying the following
attribute in the web/machine.config file:

<system.web>
<httpRuntime executionTimeout="90" />
</system.web>

If you are invoking an operation that consistently exceeds the default
timeout, a better solution may be to invoke the web methods
asynchronously, rather than increasing the timeout for all requests.
Note that there are trade-offs in increasing the http timeout, as
system resources will be consumed longer by individual requests, thus
decreasing the scalability of your application.

HTH.

Cheers,
Matt

Mar 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9051
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
0
1358
by: Steve Schaenzer | last post by:
Hello, I have a windows client that makes a WebService call on regular intervals using a timer. This call is very simple and always takes a very short time to reply. However about every one in...
2
31916
by: peterlan | last post by:
Hi, this is a follow-up to my previous post. I've got a long-running function exposed as a web service. It can take up to 3 or 4 minutes to complete (rendering a 300 page pdf from xsl-fo). I have...
8
3990
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to...
2
8203
by: Jose Maestro | last post by:
I am using MS SOAP client provided with SOAP Toolkit 3.0. I have set the timeout for this application to 20 seconds. On some occasions, when there are network problems and the call to the...
4
9516
by: A.M-SG | last post by:
Hi, How can I increase the HTTP Timeout value at the client side? Thank you, Alan
1
10400
by: Greg Allen | last post by:
I have a timeout issue with a long running web service, and I can't figure out where the timeout value is coming from. In the client I end up getting the following exception: The underlying...
1
10973
by: tudor | last post by:
I have a web service that I use to kick off a long-running job that dumps a lot of data to an XML file (takes about 5 minutes). I need to have ASP.NET produce the XML file as the web site has the...
2
2887
by: R3al1ty | last post by:
ASP.NET, Windows Forms, Web Services WebService Proxy Timeout = 100secs WebService Asmx = Unlimited? IIS ASP ScriptTimeout = 90secs IIS ASP.NET Execution Timeout = 110secs SQL CommandTimeout...
4
51121
by: Simon | last post by:
I would like to know how to set the timeout for System.Web.Services.WebService class (from which my web service is derived)? According to documentation there should be Timeout property, but I can...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.