/[AnywhereTS-MSSQL]/trunk/TSAdminTool/DHCP.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/DHCP.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/TSAdminTool/DHCP.cs	2012/07/12 14:17:14	46
+++ trunk/TSAdminTool/DHCP.cs	2012/07/12 14:29:34	47
@@ -7,7 +7,7 @@
 using System.Security; // Security Exception
 using System.Windows.Forms; // Message Box
 using System.Text.RegularExpressions; // For validate MAC address
-
+using log4net;
 namespace AnywhereTS
 {
     public static class AtsDhcp // DHCP Support
@@ -100,7 +100,7 @@
                 srvController.Start();
                 srvController.WaitForStatus(ServiceControllerStatus.Running, TimeSpan.FromSeconds(50));
             }
-            catch
+            catch(Exception e)
             {
                 MessageBox.Show(@"Could not start the TFTPD service.");
                 using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))

 

  ViewVC Help
Powered by ViewVC 1.1.22