WebException

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What 'period of time' are we talking about for a WebException in .net 2.0?

System.Net.WebException: Unable to connect to the remote server --->
System.Net.Sockets.SocketException: A connection attempt failed because the
connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond
 
Hi Arne,

The timeout is determined by the WebRequest.Timeout property, for which the
default is determined by the descendant of WebRequest used. You can also set
it to whatever amount of milliseconds you wish, including Infinite (not
recommended).

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top