Troubleshooting Exceptions: System.Net.WebException
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Troubleshooting Exceptions: System.Net.WebException

A WebException exception is thrown when an error occurs while accessing the network through a pluggable protocol.

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.

Show:
© 2016 Microsoft