This project is read-only.


Feb 28, 2011 at 6:01 PM

I'm trying to Create a new VPN Connection using DotRas (W2K). I don't want datacrittografy, so i set entry.Options.RequireEncryptedPassword = False

but when I check the value in new VPN Connection

Security tab -> Advanced Settings -> data Encryption I have the same value

"Require encryption 8disconnect if server declines)"

Really I'm not sure about that property. It's a boolean property, but Data Encryption has 4 value

Mar 1, 2011 at 3:26 AM

Requiring encryption on the password and requiring the data connection to be encrypted aren't the same.

I tell this to people all the time, but the best way to ensure the connection is configured the way you want it is to create the connection in Windows and open that connection up with RasPhoneBook and inspect the properties that Windows set. You'll be able to make sure you have the settings correct that way and be able to verify the settings you'll be using will work as you expect them to. There are a lot of properties on the RasEntry that most people don't necessarily know about since most of it Windows sets under the hood.

Mar 1, 2011 at 8:32 AM

I've found the correct property

entry.EncryptionType = RasEncryptionType.Optional


Thank's for your replay and for this GREAT dll

Mar 1, 2011 at 7:37 PM

Glad to hear it, happy coding!