To clarify, I understand what you say, but what is bothering me is the fact that the error does not always come - only sometimes. PS. I'm not creating a new Entry, I'm only configuring an existing one.
I already added the props asked by the message:
Using PhoneBook As New DotRas.RasPhoneBook
.Device = DotRas.RasDevice.GetDevices(0) ' 0 = WAN Miniport (IKEv2) Vpn
.EntryType = DotRas.RasEntryType.Vpn
.PhoneNumber = "10.0.0.1"
.FramingProtocol = DotRas.RasFramingProtocol.Ppp
But then sometimes I got the following message during RasDial later:
651 – The modem (or other connecting device) has reported an error
So I removed the code above.
I also made a test on a Windows 8-PC, if I get the first error, I can start "Clear Cached Credentials" and then I get no error.
I understand that for a new entry I have to add this properties, but for an existing one - really necessary? Maybe an enhancement for you to be made? a bug?