diff --git a/NetMonitorUtils/NetworkSetter.cs b/NetMonitorUtils/NetworkSetter.cs index cd1f386..eab91dd 100644 --- a/NetMonitorUtils/NetworkSetter.cs +++ b/NetMonitorUtils/NetworkSetter.cs @@ -186,7 +186,14 @@ namespace NetMonitorUtils Dictionary ret = new Dictionary(); foreach (string adapter in adapters) { - String data = this.serviceController.NetworkGetName(adapter); + String data = ""; + try { + data = this.serviceController.NetworkGetName(adapter); + } catch(NetMonitorUtils.Execptions.ServiceControlException e) { + data = "unknown"; + this.addLog("NetworkSetter.getNetwork", e.Message, LogLevel.Error); + } + if (data == "unknown") { ret.Add(adapter, "unknown"); diff --git a/bin/Release/NetMonitorClient.exe b/bin/Release/NetMonitorClient.exe index 788cbea..95bb8cf 100644 Binary files a/bin/Release/NetMonitorClient.exe and b/bin/Release/NetMonitorClient.exe differ diff --git a/bin/Release/NetMonitorConsole.exe b/bin/Release/NetMonitorConsole.exe index 294ed67..10201c3 100644 Binary files a/bin/Release/NetMonitorConsole.exe and b/bin/Release/NetMonitorConsole.exe differ diff --git a/bin/Release/NetMonitorServer.exe b/bin/Release/NetMonitorServer.exe index f18b2bf..25e1a67 100644 Binary files a/bin/Release/NetMonitorServer.exe and b/bin/Release/NetMonitorServer.exe differ diff --git a/bin/Release/NetMonitorTray.exe b/bin/Release/NetMonitorTray.exe index 044b735..6c3c18a 100644 Binary files a/bin/Release/NetMonitorTray.exe and b/bin/Release/NetMonitorTray.exe differ diff --git a/bin/Release/NetMonitorUtils.dll b/bin/Release/NetMonitorUtils.dll index b0907cd..e27a2d5 100644 Binary files a/bin/Release/NetMonitorUtils.dll and b/bin/Release/NetMonitorUtils.dll differ diff --git a/bin/Release/NetOpenVPNGUI.exe b/bin/Release/NetOpenVPNGUI.exe index 2491c36..60a8ddf 100644 Binary files a/bin/Release/NetOpenVPNGUI.exe and b/bin/Release/NetOpenVPNGUI.exe differ diff --git a/bin/Release/Utils.dll b/bin/Release/Utils.dll index 11df75a..c92e6e3 100644 Binary files a/bin/Release/Utils.dll and b/bin/Release/Utils.dll differ