timeout

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Radoslaw Gembarowski (Radoslaw.Gembarowski_at_comarch.pl)
Date: 12/23/04


Date: Thu, 23 Dec 2004 10:30:39 +0100

I use in the loop code which creates WebRequest, sends it and recives a
response. This code works properly about 3 hours. After it is thrown
exception with message "System.Net.WebException: The operation has
timed-out" when the method GetResponse is called. If I set timeout to 5
minutes it doesn't solve my problem. I found
http://www.error-bank.com/microsoft.public.dotnet.framework.webservices/4230_Thread.aspx
where is described problem similar to mine.

How can I resolve this problem ?

RG



Relevant Pages

  • Re: Checking if a website is online from a windows app
    ... I would agree that simply checking the length of the response ... a WebException will be thrown. ... available and yet an exception is not thrown when you call GetResponse? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Checking if a website is online from a windows app
    ... I would agree that simply checking the length of the response isn't an appropriate solution. ... You can look at the Response property of the WebException to see the details of the error, but in your case the mere fact that the exception is thrown would probably suffice. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Model-View-Presenter (MVP) question
    ... Thanks for your response. ... I still have the problem of handling ... What if an Exception is thrown ...
    (comp.object)