Share via


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.

See Also

Tasks

How to: Find Out More About an Exception with 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
How to: Call a Web Service

Reference

WebException