|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WebExceptionWhat '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 -- Arne Garvander Certified Geek 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). -- Show quoteHTH, Kevin Spencer Microsoft MVP Professional Numbskull Show me your certification without works, and I'll show my certification *by* my works. "Arne Garvander" <ArneGarvan***@discussions.microsoft.com> wrote in message news:79A2D37B-1B54-4745-BBB4-44B9A2F711E5@microsoft.com... > 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 > -- > Arne Garvander > Certified Geek > |
|||||||||||||||||||||||