Can't Update Credentials

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

i try it with :

RasPhoneBook phoneBook = new RasPhoneBook();
phoneBook.Open();

RasEntryCollection rasEC = phoneBook.Entries;


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

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