In a Windows Forms, .NET 3.5 application, I am validating user (login) authentication using a domain account with cached credentials, disconnected from *my* domain network. If I am connected to *any* network, even a rogue wireless network the ValidateCredentials() works correctly. However, when I disconnect from the network, I get this PrincipalOperationExceptio
"The network location cannot be reached. For information about network troubleshooting, see Windows Help. (Exception from HRESULT: 0x800704CF.
Is there a way to ValidateCredentials() without being connected to a network?
using (PrincipalContext context = new PrincipalContext(ContextType.Machine))
valid = context.ValidateCredentials(txtUserName.Text, txtPassWord.Text);