Specifies the error codes returned by the DnsClient class.
The DnsClient class uses the ErrorCode enumeration to specify what error has occurred when a method fails. The current error code may be determined by checking the value of the LastError property.
Note that the last error code is only meaningful if the previous operation has failed.
| Member Name | Description |
|---|---|
| errorNone | No error. |
| errorNotHandleOwner | Handle not owned by the current thread. |
| errorFileNotFound | The specified file or directory does not exist. |
| errorFileNotCreated | The specified file could not be created. |
| errorOperationCanceled | The blocking operation has been canceled. |
| errorInvalidFileType | The specified file is a block or character device, not a regular file. |
| errorInvalidDevice | The specified file type is invalid or not a regular file. |
| errorTooManyParameters | The maximum number of function parameters has been exceeded. |
| errorInvalidFileName | The specified file name contains invalid characters or is too long. |
| errorInvalidFileHandle | Invalid file handle passed to function. |
| errorFileReadFailed | Unable to read data from the specified file. |
| errorFileWriteFailed | Unable to write data to the specified file. |
| errorOutOfMemory | Out of memory. |
| errorAccessDenied | Access denied. |
| errorInvalidParameter | Invalid argument passed to function. |
| errorClipboardUnavailable | The system clipboard is currently unavailable. |
| errorClipboardEmpty | The system clipboard is empty or does not contain any text data. |
| errorFileEmpty | The specified file does not contain any data. |
| errorFileExists | The specified file already exists. |
| errorEndOfFile | End of file. |
| errorDeviceNotFound | The specified device could not be found. |
| errorDirectoryNotFound | The specified directory could not be found. |
| errorInvalidbuffer | Invalid memory address passed to function. |
| errorBufferTooSmall | The specified buffer is not large enough to contain the data. |
| errorNoHandles | No more handles are available to this process. |
| errorOperationWouldBlock | The specified operation would block the current thread. |
| errorOperationInProgress | A blocking operation is currently in progress. |
| errorAlreadyInProgress | The specified operation is already in progress. |
| errorInvalidHandle | Invalid handle passed to function. |
| errorInvalidAddress | Invalid network address specified. |
| errorInvalidSize | Datagram is too large to fit in specified buffer. |
| errorInvalidProtocol | Invalid network protocol specified. |
| errorProtocolNotAvailable | The specified network protocol is not available. |
| errorProtocolNotSupported | The specified protocol is not supported. |
| errorSocketNotSupported | The specified socket type is not supported. |
| errorInvalidOption | The specified option is invalid. |
| errorProtocolFamily | Specified protocol family is not supported. |
| errorProtocolAddress | The specified address is invalid for this protocol family. |
| errorAddressInUse | The specified address is in use by another process. |
| errorAddressUnavailable | The specified address cannot be assigned. |
| errorNetworkUnavailable | The networking subsystem is unavailable. |
| errorNetworkUnreachable | The specified network is unreachable. |
| errorNetworkReset | Network dropped connection on remote reset. |
| errorConnectionAborted | Connection was aborted due to timeout or other failure. |
| errorConnectionReset | Connection was reset by remote network. |
| errorOutOfBuffers | No buffer space is available. |
| errorAlreadyConnected | Connection already established with remote host. |
| errorNotConnected | No connection established with remote host. |
| errorConnectionShutdown | Unable to send or receive data after connection shutdown. |
| errorOperationTimeout | The specified operation has timed out. |
| errorConnectionRefused | The connection has been refused by the remote host. |
| errorHostUnavailable | The specified host is unavailable. |
| errorHostUnreachable | Remote host is unreachable. |
| errorTooManyProcesses | Too many processes are using the networking subsystem. |
| errorNetworkNotReady | Network subsystem is not ready for communication. |
| errorInvalidVersion | This version of the operating system is not supported. |
| errorNetworkNotInitialized | The networking subsystem has not been initialized. |
| errorRemoteShutdown | The remote host has initiated a graceful shutdown sequence. |
| errorInvalidHostName | The specified hostname is invalid or could not be resolved. |
| errorHostNameNotFound | The specified hostname could not be found. |
| errorHostNameRefused | Unable to resolve hostname, request refused. |
| errorHostNameNotResolved | Unable to resolve hostname, no address for specified host. |
| errorInvalidLicense | The license for this product is invalid. |
| errorProductNotLicensed | This product is not licensed to perform this operation. |
| errorNotImplemented | This function has not been implemented on this platform. |
| errorUnknownLocalhost | Unable to determine local host name. |
| errorInvalidHostAddress | Invalid host address specified. |
| errorInvalidServicePort | Invalid service port number specified. |
| errorInvalidServiceName | Invalid or unknown service name specified. |
| errorInvalidEventId | Invalid event identifier specified. |
| errorOperationNotBlocking | No blocking operation in progress on this socket. |
| errorSecurityNotInitialized | Unable to initialize security interface for this process. |
| errorSecurityContext | Unable to establish security context for this session. |
| errorSecurityCredentials | Unable to open client certificate store or establish client credentials. |
| errorSecurityCertificate | Unable to validate server certificate. |
| errorSecurityDecryption | Unable to decrypt data stream. |
| errorSecurityEncryption | Unable to encrypt data stream. |
| errorOperationNotSupported | The specified operation is not supported. |
| errorInvalidProtocolVersion | Invalid application protocol version specified. |
| errorNoServerResponse | No data returned from server. |
| errorInvalidServerResponse | Invalid data returned from server. |
| errorUnexpectedServerResponse | Unexpected response code returned from server. |
| errorServerTransactionFailed | Server transaction failed. |
| errorServiceUnavailable | The service is currently unavailable. |
| errorServiceNotReady | The service is not ready, try again later. |
| errorServerResyncFailed | Unable to resynchronize with server. |
| errorInvalidProxyType | Invalid proxy server type specified. |
| errorProxyRequired | Resource must be accessed through specified proxy. |
| errorInvalidProxyLogin | Unable to login to proxy server using specified credentials. |
| errorProxyResyncFailed | Unable to resynchronize with proxy server. |
| errorInvalidCommand | Invalid command specified. |
| errorInvalidCommandParameter | Invalid command parameter specified. |
| errorInvalidCommandSequence | Invalid command sequence specified. |
| errorCommandNotImplemented | Specified command not implemented on this server. |
| errorCommandNotAuthorized | Specified command not authorized for the current user. |
| errorCommandAborted | Specified command was aborted by the remote host. |
| errorOptionNotSupported | The specified option is not supported on this server. |
| errorRequestNotCompleted | The current client request has not been completed. |
| errorInvalidUserName | The specified username is invalid. |
| errorInvalidPassword | The specified password is invalid. |
| errorInvalidAccount | The specified account name is invalid. |
| errorAccountRequired | Account name has not been specified. |
| errorInvalidAuthenticationType | Invalid authentication protocol specified. |
| errorAuthenticationRequired | User authentication is required. |
| errorProxyAuthenticationRequired | Proxy authentication required. |
| errorAlreadyAuthenticated | User has already been authenticated. |
| errorAuthenticationFailed | Unable to authenticate the specified user. |
| errorNetworkAdapter | Unable to determine network adapter configuration. |
| errorInvalidRecordType | Invalid record type specified. |
| errorInvalidRecordName | Invalid record name specified. |
| errorInvalidRecordData | Invalid record data specified. |
| errorConnectionOpen | Data connection already established. |
| errorConnectionClosed | Server closed data connection. |
| errorConnectionPassive | Data connection is passive. |
| errorConnectionFailed | Unable to open data connection to server. |
| errorInvalidSecurityLevel | Data connection cannot be opened with this security setting. |
| errorCachedTLSRequired | Data connection requires cached TLS session. |
| errorDataReadOnly | Data connection is read-only. |
| errorDataWriteOnly | Data connection is write-only. |
| errorEndOfData | End of data. |
| errorRemoteFileUnavailable | Remote file is unavailable. |
| errorInsufficientStorage | Insufficient storage on server. |
| errorStorageallocation | File exceeded storage allocation on server. |
| errorDirectoryExists | The specified directory already exists. |
| errorDirectoryEmpty | No files returned by the server for the specified directory. |
| errorEndOfDirectory | End of directory listing. |
| errorUnknownDirectoryFormat | Unknown directory format. |
| errorInvalidResource | Invalid resource name specified. |
| errorResourceRedirected | The specified resource has been redirected. |
| errorResourceRestricted | Access to this resource has been restricted. |
| errorResourceNotModified | The specified resource has not been modified. |
| errorResourceNotFound | The specified resource cannot be found. |
| errorResourceConflict | Request could not be completed due to the current state of the resource. |
| errorResourceRemoved | The specified resource has been permanently removed from this server. |
| errorContentLengthRequired | Request must include the content length. |
| errorRequestPrecondition | Request could not be completed due to server precondition. |
| errorUnsupportedMediaType | Request specified an unsupported media type. |
| errorInvalidContentRange | Content range specified for this resource is invalid. |
| errorInvalidMessagePart | Message is not multi-part or an invalid message part was specified. |
| errorInvalidMessageHeader | The specified message header is invalid or has not been defined. |
| errorInvalidMessageBoundary | The multi-part message boundary has not been defined. |
| errorNoFileAttachment | The current message part does not contain a file attachment. |
| errorUnknownFileType | The specified file type could not be determined. |
| errorDataNotEncoded | The specified data block could not be encoded. |
| errorDataNotDecoded | The specified data block could not be decoded. |
| errorFileNotEncoded | The specified file could not be encoded. |
| errorFileNotDecoded | The specified file could not be decoded. |
| errorNoMessageText | No message text. |
| errorInvalidCharacterSet | Invalid character set specified. |
| errorInvalidEncodingType | Invalid encoding type specified. |
| errorInvalidMessageNumber | Invalid message number specified. |
| errorNoReturnAddress | No valid return address specified. |
| errorNoValidRecipients | No valid recipients specified. |
| errorInvalidRecipient | The specified recipient address is invalid. |
| errorRelayNotAuthorized | The specified domain is invalid or server will not relay messages. |
| errorMailboxUnavailable | Specified mailbox is currently unavailable. |
| errorMailboxReadOnly | The selected mailbox cannot be modified. |
| errorMailboxNotSelected | No mailbox has been selected. |
| errorInvalidMailbox | Specified mailbox is invalid. |
| errorInvalidDomain | The specified domain name is invalid or not recognized. |
| errorInvalidSender | The specified sender address is invalid or not recognized. |
| errorMessageNotDelivered | Message not delivered to any of the specified recipients. |
| errorEndOfMessageData | No more message data available to be read |
| errorInvalidmessageSize | The specified message size is invalid. |
| errorMessageNotCreated | The message could not be created in the specified mailbox. |
| errorNoMoreMailboxes | No more mailboxes exist on this server. |
| errorInvalidEmulationType | The specified terminal emulation type is invalid. |
| errorInvalidFontHandle | The specified font handle is invalid. |
| errorInvalidFontName | The specified font name is invalid or unavailable. |
| errorInvalidPacketSize | The specified packet size is invalid. |
| errorInvalidPacketData | The specified packet data is invalid. |
| errorInvalidPacketId | The unique packet identifier is invalid. |
| errorPacketTTLExpired | The specified packet time-to-live period has expired. |
| errorInvalidNewsGroup | Invalid newsgroup specified. |
| errorNoNewsgroupSelected | No newsgroup selected. |
| errorEmptyNewsgroup | No articles in specified newsgroup. |
| errorInvalidArticle | Invalid article number specified. |
| errorNoArticleSelected | No article selected in the current newsgroup. |
| errorFirstArticle | First article in current newsgroup. |
| errorLastArticle | Last article in current newsgroup. |
| errorArticleExists | Unable to transfer article, article already exists. |
| errorArticleRejected | Unable to transfer article, article rejected. |
| errorArticleTransferFailed | Article transfer failed. |
| errorArticlePostingDenied | Posting is not permitted on this server. |
| errorArticlePostingFailed | Unable to post article on this server. |
| errorInvalidDateFormat | The specified date format is not recognized. |
| errorFeatureNotSupported | The specified feature is not supported on this server. |
| errorInvalidFormHandle | The specified form handle is invalid or a form has not been created. |
| errorInvalidFormAction | The specified form action is invalid or has not been specified. |
| errorInvalidFormMethod | The specified form method is invalid or not supported. |
| errorInvalidFormType | The specified form type is invalid or not supported. |
| errorInvalidFormField | The specified form field name is invalid or does not exist. |
| errorEmptyForm | The specified form does not contain any field values. |
| errorMaximumConnections | The maximum number of client connections exceeded. |
| errorThreadCreationFailed | Unable to create a new thread for the current process. |
| errorInvalidThreadHandle | The specified thread handle is no longer valid. |
| errorThreadTerminated | The specified thread has been terminated. |
| errorThreadDeadlock | The operation would result in the current thread becoming deadlocked. |
| errorInvalidClientMoniker | The specified moniker is not associated with any client session. |
| errorClientMonikerExists | The specified moniker has been assigned to another client session. |
| errorServerInactive | The specified server is not listening for client connections. |
| errorServerSuspended | The specified server is suspended and not accepting client connections. |
| errorNoMessageStore | No message store has been specified. |
| errorMessageStoreChanged | The message store has changed since it was last accessed. |
| errorMessageNotFound | No message was found that matches the specified criteria. |
| errorMessageDeleted | The specified message has been deleted. |
| errorFileChecksumMismatch | The local and remote file checksums do not match. |
| errorFileSizeMismatch | The local and remote file sizes do not match. |
| errorInvalidFeedUrl | The news feed URL is invalid or specifies an unsupported protocol. |
| errorInvalidFeedFormat | The internal format of the news feed is invalid. |
| errorInvalidFeedVersion | This version of the news feed is not supported. |
| errorChannelEmpty | There are no valid items found in this news feed. |
| errorInvalidItemNumber | The specified channel item identifier is invalid. |
| errorItemNotFound | The specified channel item could not be found. |
| errorItemEmpty | The specified channel item does not contain any data. |
| errorInvalidItemProperty | The specified item property name is invalid. |
| errorItemPropertyNotFound | The specified item property has not been defined. |
| errorInvalidChannelTitle | The channel title is invalid or has not been defined. |
| errorInvalidChannelLink | The channel hyperlink is invalid or has not been defined. |
| errorInvalidChannelDescription | The channel description is invalid or has not been defined. |
| errorInvalidItemText | The description for an item is invalid or has not been defined. |
| errorInvalidItemLink | The hyperlink for an item is invalid or has not been defined. |
| errorInvalidServiceType | The specified service type is invalid. |
| errorServiceSuspended | Access to the specified service has been suspended. |
| errorServiceRestricted | Access to the specified service has been restricted. |
| errorInvalidProviderName | The specified provider name is invalid or unknown. |
| errorInvalidPhoneNumber | The specified phone number is invalid or not supported in this region. |
| errorGatewayNotFound | A message gateway cannot be found for the specified provider. |
| errorMessageTooLong | The message exceeds the maximum number of characters permitted. |
| errorInvalidProviderData | The request returned invalid or incomplete service provider data. |
| errorInvalidGatewayData | The request returned invalid or incomplete message gateway data. |
| errorMultipleProviders | The request has returned multiple service providers. |
| errorProviderNotFound | The specified service provider could not be found. |
| errorInvalidMessageService | The specified message is not supported with this service type. |
| errorInvalidMessageFormat | The specified message format is invalid. |
Namespace: SocketTools
Assembly: SocketTools.DnsClient (in SocketTools.DnsClient.dll)
SocketTools Namespace | LastError Property | LastErrorString Property | OnError Event