Help me to connect OpenVPN Community for VPN Server using C#
Budget: ₹1,500 – ₹12,500 INR
I am trying to connect VPN Server using OpenVPN Community from my Desktop Application Developed in C#. The code was working fine and suddenly I am getting below error when connection is established.
Screenshot is attached,
Here is the code that was working earlier but not now.
string OpenVpnLocation = Environment.Is64BitOperatingSystem ? @"C:\Program Files\OpenVPN\bin\openvpn.exe" : @"C:\Program Files\OpenVPN\bin\openvpn.exe";
Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo
{
//WindowStyle = ProcessWindowStyle.Hidden,
FileName = OpenVpnLocation,
Arguments = "--config server.ovpn --auth-user-pass ovpnpass.txt",
Verb = "runas"
};
process.StartInfo = startInfo;
process.Start();
As per the error logs I understood that, route is already created and from this code it is creating another route, which throws an error, if so, then is there any way to handle it from C# code?
Thanks in advance!
Screenshot is attached,
Here is the code that was working earlier but not now.
string OpenVpnLocation = Environment.Is64BitOperatingSystem ? @"C:\Program Files\OpenVPN\bin\openvpn.exe" : @"C:\Program Files\OpenVPN\bin\openvpn.exe";
Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo
{
//WindowStyle = ProcessWindowStyle.Hidden,
FileName = OpenVpnLocation,
Arguments = "--config server.ovpn --auth-user-pass ovpnpass.txt",
Verb = "runas"
};
process.StartInfo = startInfo;
process.Start();
As per the error logs I understood that, route is already created and from this code it is creating another route, which throws an error, if so, then is there any way to handle it from C# code?
Thanks in advance!