[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webservices

RE: System.Net.WebException when calling a webservice

(Luke Zhang [MS])

6/11/2004 5:31:00 AM

Hello,

A web service excuting has some timeout settings as follows:

1.<httpRuntime executionTimeout = "???"> in Machine.Config This one is
concerned with the ASP.NET web application's runtime timeout property, and
in dotnet, the machine config always provide a default setting for all the
application. So you can override them in the applicaiont's config file. For
example as the ASP.NET web application or web service, you can override it
by modifying the "httpRuntime" element's "Timeout" attribute .

2. <sessionState timeout = "???"> in Web.ConfigThis "timeout" is set for
the asp.net web application's session state, not
the limit for the serverside's executing time

3. <httpRuntime executionTimeout = "???"> in Web.Config The same as in the
machine.config but can override the value in
machine.config

4. responseDeadLockInterval attribute of the <processModel> tag

You may change this value to see if it will help.

Additionally, on client side, the web service proxy client also has a time
out property. The default proxy timeout value for the client is 100
seconds. You can modify the proxy timeout value by using the timeout
property of the proxy as follows:

webserver.Service1 ws = new webserver.Service1();
ws.Timeout = System.Threading.Timeout.Infinite;

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

2 Answers

(Luke Zhang [MS])

6/14/2004 9:35:00 AM

0

Hi Antonio,

So, is it a work around to set the Keep-Alives and Connection timeout to a
large number? If you just want to set Keep-Alives to False, you may try the
suggestion in this link:

http://weblogs.asp.net/jan/archive/2004/01/28/...

Luke

(Luke Zhang [MS])

6/15/2004 5:11:00 AM

0

Hi Antonio,

Or you may try Asynchronous Web Service:

Creating Asynchronous XML Web Service Methods

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/c...
l/cpconCreatingAsynchronousXMLWebServiceMethod.asp


Luke