Windows Runtime HRESULT Table
Contents
- Windows.Web.Http.HttpClient.GetAsync()
- Windows.Web.Http.HttpClient.PostAsync()
- Windows.Web.Http and ControlChannelTrigger
- System.Net.HttpClient
- Windows.Networking.Sockets and IInputStream.ReadAsync()
- Windows.Networking.Sockets.StreamSocket.ConnectAsync()
- Windows.Networking.Sockets.DatagramSocket.GetOutputStreamAsync()
- Windows.Networking.Sockets.StreamSocketListener.BindServiceNameAsync()
- Windows.ApplicationModel.Background.SocketActivityTrigger
- Windows.Networking.Sockets.StreamWebSocket.ConnectAsync()
- Windows.Networking.Sockets.MessageWebSocket.ConnectAsync()
- System.Net.WebSockets.ClientWebSocket
- Windows.Networking.BackgroundTransfer
Windows.Web.Http.HttpClient.GetAsync()
Also applies to HttpClient.SendRequestAsync()
, HttpClient.PostAsync()
, HttpClient.PutAsync()
, etc.
- 0x80070002
- ERROR_FILE_NOT_FOUND
HttpCacheReadBehavior.OnlyFromCache
was used and requested resource is not in the cache.
- 0x80070490
- ERROR_NOT_FOUND
- Element not found.
- A dialog cannot be displayed because the parent window handle has not been set.
- The request was started in a process or thread that does not have a window. Start the request from a UI thread or disable UI features using
HttpBaseProtocolFilter::AllowUI = false
- Read more on stackoverflow.com
- 0X8007007B
- ERROR_INVALID_NAME
- The URI does not have a host name, e.g.:
http:///
- 0X8000000E
- E_ILLEGAL_METHOD_CALL
- The URI has an schema different of
http://
orhttps://
- 0x80000013
- RO_E_CLOSED
HttpClient
orIHttpFilter
was previously disposed.
- 0x80072EFF
- ERROR_INTERNET_CONNECTION_RESET
- The connection with the server was reset.
- Server aborts connection during SSL negotiation.
- 0x80072F0D
- ERROR_INTERNET_INVALID_CA
- The certificate authority is invalid or incorrect.
- User clicks Cancel instead of selecting a client certificate on select certificate UI.
- 0x8000000E
- E_ILLEGAL_METHOD_CALL
- A
HttpRequestMessage
object was already sent.
- 0x8000000E
- E_ILLEGAL_METHOD_CALL
HttpRequestMessage.RequestUri
is null.
- 800C000E
- System.Net.Http.HttpRequestException
- INET_E_SECURITY_PROBLEM
- An error occurred while sending the request. —> System.Runtime.InteropServices.COMException: A security problem occurred. (Exception from HRESULT: 0x800C000E)
- Do not include the user name and password in the URI (RFC 3986 3.2.1 User Information). For example,
http://user:password@example.com
will trigger this error. - See fix on stackoverflow.com
- 0x80072EE7
- WININET_E_NAME_NOT_RESOLVED
- The server name or address could not be resolved
- Cannot contact DNS server or there are no DNS records for the host name.
- 0x80072EFD
- WININET_E_CANNOT_CONNECT
- No network access available and the URI host name is an IP address.
- 0x80072F0D
- WININET_E_INVALID_CA
- The certificate authority is invalid or incorrect.
- The Issuer is not in the Trusted Root Certification Authorities store.
- If using a self-signed server certificate, add the certificate to the Package Trusted Root Certification Authorities store. See example on stackoverflow.com
- Not recommended: ignore the error by adding
ChainValidationResult.Untrusted
toHttpBaseProtocolFilter.IgnorableServerCertificateErrors
. See example on stackoverflow.com
- 0x80072F06
- WININET_E_SEC_CERT_CN_INVALID
- The host name in the certificate is invalid or does not match.
- Certificate was issued to a different domain name. E.g.: certificate was issued to www.example.com and you are accessing foo.example.com
- Not recommended: ignore the error by adding
ChainValidationResult.InvalidName
toHttpBaseProtocolFilter.IgnorableServerCertificateErrors
. See example on stackoverflow.com
- 0x80072F05
- WININET_E_SEC_CERT_DATE_INVALID
- The date in the certificate is invalid or has expired
- Not recommended: ignore the error by adding
ChainValidationResult.Expired
toHttpBaseProtocolFilter.IgnorableServerCertificateErrors
. See example on stackoverflow.com
Windows.Web.Http.HttpClient.PostAsync()
- 0x80070057
- E_INVALIDARG
System.ArgumentException
- Value does not fall within the expected range.
- This error could happen when posting a
HttpStreamContent
pointing to an empty file or the end of a stream; or posting a zero-lengthHttpBufferContent
,
Windows.Web.Http and ControlChannelTrigger
- 0x8000000E
Windows::Networking::Sockets::ControlChannelTrigger::WaitForPushEnabled()
- E_ILLEGAL_METHOD_CALL
- The server cannot be running locally, it must be running in a remote machine.
- 0x80072F73
- ERROR_HTTP_PUSH_STATUS_CODE_NOT_SUPPORTED
- 0x80072F74
- ERROR_HTTP_PUSH_RETRY_NOT_SUPPORTED
- Client certificate is not supported with Control Channel Trigger.
- 0x80072F75
- ERROR_HTTP_PUSH_ENABLE_FAILED
- Exception from HRESULT: 0x80072F75
- Read more in stackoverflow.com
System.Net.HttpClient
Also applies to HttpClient.SendAsync()
.
- 0x80072f08
- ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR
- The application is moving from an SSL to an non-SSL connection because of a redirect.
- Disable auto-redirect and handle redirection manually. See example on stackoverflow.com
- 0x80131500
- COR_E_EXCEPTION
- System.Net.WebException
- The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. —> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
- If using a self-signed server certificate, add the certificate to the Package.appxmanifest. See example on stackoverflow.com
Windows.Networking.Sockets and IInputStream.ReadAsync()
- 0x80072EFF
- WININET_E_CONNECTION_RESET
- The connection with the server was reset. The network adapter was disconnected.
- 0x800703E3
- ERROR_OPERATION_ABORTED
- The I/O operation has been aborted because of either a thread exit or an application request. (Exception from HRESULT: 0x800703E3)
- The local socket was closed.
Windows.Networking.Sockets.StreamSocket.ConnectAsync()
Also applies to Windows.Networking.Sockets.DatagramSocket.BindAsync()
- 0x80072740
- WSAEADDRINUSE
- Only one usage of each socket address (protocol/network address/port) is normally permitted. (Exception from HRESULT: 0x80072740)
- Another socket in the local system is bound to the same port number.
- 0x8007271D
- WSAEACCES
- Another socket is bound to the same port.
- 0x80072746
- WSAECONNRESET
Windows::Networking::Sockets::DatagramSocket::MessageReceived
- An existing connection was forcibly closed by the remote host. (Exception from HRESULT: 0x80072746)
- Remote peer did not receive a UDP message.
Windows.Networking.Sockets.DatagramSocket.GetOutputStreamAsync()
- 0x80072AF9
- WSAHOST_NOT_FOUND
- No such host is known. (Exception from HRESULT: 0x80072AF9)
- Use
DatagramSocket::GetOutputStreamAsync()
if socket sends every message to different destination.GetOutputStreamAsync()
does DNS resolution first. If DNS resolution fails, you get this error.
Windows.Networking.Sockets.StreamSocketListener.BindServiceNameAsync()
- 0x8000000E
- E_ILLEGAL_METHOD_CALL
- A method was called at an unexpected time. (Exception from HRESULT: 0x8000000E)
- Set a
StreamSocketListener::ConnectionReceived
handler before calling intoStreamSocketListener::BindServiceNameAsync
.
Windows.ApplicationModel.Background.SocketActivityTrigger
- 0x8007273D
- WSAEOPNOTSUPP
Windows::Networking::Sockets::StreamSocket::EnableTransferOwnership
- The attempted operation is not supported for the type of object referenced.
- Read more on stackoverflow.com
Windows.Networking.Sockets.StreamWebSocket.ConnectAsync()
- 0x800710DD
- ERROR_INVALID_OPERATION
- The operation identifier is not valid. (Exception from HRESULT: 0x800710DD)
- Trying to connect to an HTTP server instead of a WebSocket server.
- 0x80072F78
- ERROR_HTTP_INVALID_SERVER_RESPONSE
- The server returned an invalid or unrecognised response.
- Remote machine (server) aborts connection during SSL negotiation.
Windows.Networking.Sockets.MessageWebSocket.ConnectAsync()
- 0x80072EFF
- ERROR_INTERNET_CONNECTION_RESET
- The connection with the server was reset.
- Remote machine (server) aborts connection during SSL negotiation.
System.Net.WebSockets.ClientWebSocket
- 0x80072EFE
- ERROR_INTERNET_CONNECTION_ABORTED
Windows.Networking.BackgroundTransfer
- 0x8000000E
- E_ILLEGAL_METHOD_CALL
Windows::Networking::BackgroundTransfer::BackgroundTransferGroup
- 50 BackgroundTransferGroup entries limit reached.
- 0x8000000E
- E_ILLEGAL_METHOD_CALL
Windows::Networking::BackgroundTransfer::DownloadOperation::StartAsync
andWindows::Networking::BackgroundTransfer::UploadOperation::StartAsync
- A method was called at an unexpected time. Quota for maximum number of concurrent operations exceeded. Wait for an operation to complete before starting new ones.
- There is a limit of 500 concurrent downloads and uploads running or paused at a time. Cancel or complete some downloads and upload to make space for new downloads and uploads.
- 0x80070565
- ERROR_TOO_MANY_SECRETS
Windows::Networking::BackgroundTransfer
- The maximum number of secrets that may be stored in a single system has been exceeded. (Exception from HRESULT: 0x80070565)
- Read more on stackoverflow.com
- 0X80072EEF
- WININET_E_LOGIN_FAILURE
Windows::Networking::BackgroundTransfer::DownloadOperation::StartAsync
- The FTP server did not accept the given user name and password. If no credentials were provided, the FTP server is not configured to allow anonymous connections.