This exception represents an error that occurred while using a protocol-specific implementation of WebRequest . In the case of some protocols, such as HTTP, the exception's Response property contains information about the error that occurred. public class WebException : InvalidOperationException { // Public Constructors public WebException ( ); public WebException (string message ); public WebException (string message , Exception innerException ); public WebException (string message , Exception innerException , WebExceptionStatus status , WebResponse response ); public WebException (string message , WebExceptionStatus status ); // Protected Constructors protected WebException (System.Runtime.Serialization.SerializationInfo serializationInfo , System.Runtime.Serialization.StreamingContext streamingContext ); // Public Instance Properties public WebResponse Response {get; } public WebExceptionStatus Status {get; } } HierarchySystem.Object System.Exception(System.Runtime.Serialization.ISerializable) System.SystemException System.InvalidOperationException WebException |