I write new VPN Client with c# using DotRas but i got exception on UpdateCredentials.
System.Net.NetworkCredential credentials = new System.Net.NetworkCredential("testing", "123456");
Here is error message:
"A first chance exception of type 'System.UnauthorizedAccessException' occurred in DotRas.dll
Additional information: The application attempted to set default credentials for a per-user connection, or the user does not have the correct privileges to set pre-shared keys or credentials for all users."