This documentation is archived and is not being maintained.

WebExceptionStatus Enumeration

Defines status codes for the WebException class.

Namespace:  System.Net
Assembly:  System (in System.dll)

Public Enumeration WebExceptionStatus
Dim instance As WebExceptionStatus

Member nameDescription
Supported by the .NET Compact FrameworkSuccessNo error was encountered.
Supported by the .NET Compact FrameworkNameResolutionFailureThe name resolver service could not resolve the host name.
Supported by the .NET Compact FrameworkConnectFailureThe remote service point could not be contacted at the transport level.
Supported by the .NET Compact FrameworkReceiveFailureA complete response was not received from the remote server.
Supported by the .NET Compact FrameworkSendFailureA complete request could not be sent to the remote server.
Supported by the .NET Compact FrameworkPipelineFailureThe request was a piplined request and the connection was closed before the response was received.
Supported by the .NET Compact FrameworkRequestCanceledThe request was canceled, the WebRequest.Abort method was called, or an unclassifiable error occurred. This is the default value for Status.
Supported by the .NET Compact FrameworkProtocolErrorThe 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.
Supported by the .NET Compact FrameworkConnectionClosedThe connection was prematurely closed.
Supported by the .NET Compact FrameworkTrustFailureA server certificate could not be validated.
Supported by the .NET Compact FrameworkSecureChannelFailureAn error occurred while establishing a connection using SSL.
Supported by the .NET Compact FrameworkServerProtocolViolationThe server response was not a valid HTTP response.
Supported by the .NET Compact FrameworkKeepAliveFailureThe connection for a request that specifies the Keep-alive header was closed unexpectedly.
Supported by the .NET Compact FrameworkPendingAn internal asynchronous request is pending.
Supported by the .NET Compact FrameworkTimeoutNo response was received during the time-out period for a request.
Supported by the .NET Compact FrameworkProxyNameResolutionFailureThe name resolver service could not resolve the proxy host name.
UnknownErrorAn exception of unknown type has occurred.
MessageLengthLimitExceededA message was received that exceeded the specified limit when sending a request or receiving a response from the server.
CacheEntryNotFoundThe specified cache entry was not found.
RequestProhibitedByCachePolicyThe request was not permitted by the cache policy. In general, this occurs when a request is not cacheable and the effective policy prohibits sending the request to the server. You might receive this status if a request method implies the presence of a request body, a request method requires direct interaction with the server, or a request contains a conditional header.
RequestProhibitedByProxyThis request was not permitted by the proxy.

The WebExceptionStatus enumeration defines the status codes assigned to the Status property.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0