Troubleshooting Exceptions: System.Net.WebException
A WebException exception is thrown when an error occurs while accessing the network through a pluggable protocol.
Associated Tips
Check the Response property of the exception to determine why the request failed.
When a WebException exception is thrown by a descendent of the WebRequest class, the Response property provides the Internet response to the application.Check the Status property of the exception to determine why the request failed.
The Status property of the exception provides status information for the error. For more information, see WebExceptionStatus.If you are timing out when stepping into an XML Web Service, set the timeout value for the XML Web Service call to infinite.
For more information, see Error: Timeout While Debugging Web Services.
See Also
Tasks
How to: Use the Exception Assistant
How to: Send Data Using the WebRequest Class
How to: Request Data Using the WebRequest Class
How to: Retrieve a Protocol-Specific WebResponse that Matches a WebRequest