I'm trying to use the Windows login credentials on a DotRas VPN connection. This is what I've tried so far, without any luck:
this.rasDialer.Credentials = CredentialCache.DefaultNetworkCredentials;
this.rasDialer.DialAsync();
and:
this.rasDialer.Credentials = (NetworkCredential) CredentialCache.DefaultCredentials;
this.rasDialer.DialAsync();
I'm getting error code 691 when I'm trying to connect, which is the same error code I get when I'm trying with a blank username and a blank password:
this.rasDialer.Credentials = new NetworkCredential("", "");
this.rasDialer.DialAsync();
This gives me error code 13801:
this.rasDialer.Credentials = new NetworkCredential("dummy", "dummy");
this.rasDialer.DialAsync();
Thanks for any help solving this.