Re: WebRequest timeout changed declaratively

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi Jakob,

Thanks a lot for your answer.
exectutionTimeout will set the time the web server allows for a task to execute (processed by the w3wp.exe process potentially).
The timeout I would like to set is on the client side. The client calls the web service and as the answer from the server is too long to come, it comes to the timeout. This timeout is handled through the WebRequest.Timout or HttpWebClientProtocol.Timeout.

So it would be this property's default value that I would need to set without modifying the code...

Any idea?

Thanks,

Cédric


"Jakob Christensen" <JakobChristensen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:47C26E7B-83AF-4D84-80E0-0AA6A850D2D8@xxxxxxxxxxxxxxxx
You can set executionTimeout for the HttpRuntime element in web.config:
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

HTH, Jakob.
--
http://www.dotninjas.dk



"Cedric" wrote:

Hi all,

We have some performance issues on a .NET 2.0 app. However we cannot modify
it, we don't have the sources.
Reading the logs, the error is a timeout happening in some Web Service call.

With the sources, it would be easy (?!), would have just changed
WebRequest.Timout to a bigger value, but we don't have sources.

Is there a way to change the default value, which is 100 seconds,
declaratively (in web.config, machine.config... etc.) or even somewhere else
like in the registry? Or is it hard coded in the framework?

I have been struggling on this, but haven't found a lead...

Thanks,

Cédric



.



Relevant Pages

  • Re: WebServer on WinCE
    ... As long as the web server itself is running your COM object in its thread, ... > I have a question on the CE Webserver. ... If I have a ASP page with a VB ... > client because of some timeout it hits. ...
    (microsoft.public.windowsce.app.development)
  • Re: increasing web service responsiveness
    ... I'm not an expert on it but I did figure out that I was wrong and the timeout I set for contacting the web service in the windows app is actually a timeout for getting a response from the web service. ... In fiddler I could see the responses from the web service being returned for these timed out connections. ... It has been suggested that there is some kind of limit in place preventing an XP box from repeatedly calling a specific web server or perhaps a web server from getting repeated requests from on client in order to help avoid denial of service attacks. ...
    (microsoft.public.inetserver.iis)
  • Re: Other Web Parts also timing out
    ... I should have checked the WSS FAQ first ... > The timeout occurs not just with the Content Editor web part's Content ... Link, but also with the XML web part that is fetching a URL on the intranet, ... >> The web server is a regular iPlanet web server, ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: [PHP] XMLRPC and file_get_contents
    ... I'm writing an XML-REC client in PHP, ... First you can set a timeout in the context. ... And finally your web server will have its own timeout - check the documentation for whatever server you're using for details. ...
    (php.general)
  • Session Timeout
    ... timeout to be 20 mins on the web server and we as developers have no facility ... We have a number of intranet applications that require session timeout to be ... modify Page_Load logic on all pages. ...
    (microsoft.public.dotnet.framework.aspnet)