WebExceptionStatus Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Defines status codes for the WebException class.
Namespace: System.Net
Assembly: System.Net (in System.Net.dll)
Syntax
'Declaration
Public Enumeration WebExceptionStatus
public enum WebExceptionStatus
Members
Member name | Description | |
---|---|---|
Success | No error was encountered. | |
ConnectFailure | The remote service point could not be contacted at the transport level. | |
SendFailure | A complete request could not be sent to the remote server. | |
RequestCanceled | The request was canceled, the WebRequest.Abort method was called, or an unclassifiable error occurred. This is the default value for Status. | |
Pending | An internal asynchronous request is pending. | |
UnknownError | An exception of unknown type has occurred. | |
MessageLengthLimitExceeded | A message was received that exceeded the specified limit when sending a request or receiving a response from the server. | |
NameResolutionFailure | The name resolver service could not resolve the host name. Not supported. Present in Silverlight for Windows Phone. | |
ReceiveFailure | A complete response was not received from the remote server. Not supported. Present in Silverlight for Windows Phone. | |
PipelineFailure | The request was a pipelined request and the connection was closed before the response was received. Not supported. Present in Silverlight for Windows Phone. | |
ProtocolError | The response received from the server was complete but indicated a protocol-level error. For example, an HTTP protocol error such as 401 Access Denied would use this status. Not supported. Present in Silverlight for Windows Phone. | |
ConnectionClosed | The connection was prematurely closed. Not supported. Present in Silverlight for Windows Phone. | |
TrustFailure | A server certificate could not be validated. Not supported. Present in Silverlight for Windows Phone. | |
SecureChannelFailure | An error occurred while establishing a connection using SSL. Not supported. Present in Silverlight for Windows Phone. | |
ServerProtocolViolation | The server response was not a valid HTTP response. Not supported. Present in Silverlight for Windows Phone. | |
KeepAliveFailure | The connection for a request that specifies the Keep-alive header was closed unexpectedly. Not supported. Present in Silverlight for Windows Phone. | |
Timeout | No response was received during the time-out period for a request. Not supported. Present in Silverlight for Windows Phone. | |
ProxyNameResolutionFailure | The name resolver service could not resolve the proxy host name. Not supported. Present in Silverlight for Windows Phone. |
Remarks
The WebExceptionStatus enumeration defines the status codes assigned to the Status property.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.