System.Security.Authentication.InvalidCredentialException Class

The exception that is thrown when authentication fails for an authentication stream and cannot be retried.

See Also: InvalidCredentialException Members

Syntax

public class InvalidCredentialException : AuthenticationException

Remarks

The System.Net.Security.NegotiateStream and System.Net.Security.SslStream classes throw this exception when authentication fails. This exception indicates that the underlying stream is not in a valid state and you cannot retry the authentication using the System.Net.Security.NegotiateStream or System.Net.Security.SslStream instance. If you can retry the authentication, an System.Security.Authentication.AuthenticationException is thrown instead of the System.Security.Authentication.InvalidCredentialException.

Requirements

Namespace: System.Security.Authentication
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0