The exception that is thrown when an error occurs while accessing the network through a pluggable protocol.
See Also: WebException Members
The System.Net.WebException class is thrown by classes descended from System.Net.WebRequest and System.Net.WebResponse that implement pluggable protocols for accessing the Internet.
When System.Net.WebException is thrown by a descendant of the System.Net.WebRequest class, the WebException.Response property provides the Internet response to the application.