Can't Update Credentials

Nov 15, 2016 at 2:41 PM
Edited Nov 15, 2016 at 2:57 PM
i try to update the vpn credentials.

i try it with :

RasPhoneBook phoneBook = new RasPhoneBook();

RasEntryCollection rasEC = phoneBook.Entries;

if (rasEC.Contains(ConnectionName))
entry.UpdateCredentials(new System.Net.NetworkCredential(UserName, Password), true);

If i create a new connetcion without credentials, my code is working. But when i try to update the credentials from a existing vpn connection the password will not be updated.

thanks manuel