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

Diff of /trunk/TSAdminTool/Globals.cs

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

--- trunk/TSAdminTool/Globals.cs	2012/07/15 11:41:39	150
+++ trunk/TSAdminTool/Globals.cs	2012/07/15 11:53:29	151
@@ -195,7 +195,7 @@
                 }
                 catch (ArgumentNullException ex)
                 {
-                    MessageBox.Show("Error when reading from registry. Installation info missing, please run the " + ATSGlobals.ApplicationName + " installation program. (22411)");
+                    //MessageBox.Show("Error when reading from registry. Installation info missing, please run the " + ATSGlobals.ApplicationName + " installation program. (22411)");
                     using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))
                     {
                         using (log4net.NDC.Push("Installation info missing."))
@@ -208,7 +208,7 @@
                 }
                 catch (SecurityException ex)
                 {
-                    MessageBox.Show("Error when reading from registry. You do not have the necessary permission (22412). Key: " + regKey + " Value: " + regValue + " Error details:" + ex.Message);
+                    //MessageBox.Show("Error when reading from registry. You do not have the necessary permission (22412). Key: " + regKey + " Value: " + regValue + " Error details:" + ex.Message);
                     using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))
                     {
                         using (log4net.NDC.Push(string.Format("key={0} value={1}", regKey, regValue)))
@@ -224,7 +224,7 @@
                 }
                 catch (Exception ex)
                 {
-                    MessageBox.Show("Error when reading from registry (22413). Key: " + regKey + " Value: " + regValue + " Error details:" + ex.Message);
+                    //MessageBox.Show("Error when reading from registry (22413). Key: " + regKey + " Value: " + regValue + " Error details:" + ex.Message);
                     using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))
                     {
                         Logging.ATSAdminLog.Error("Error when reading from registry.");
@@ -243,7 +243,7 @@
                         }
                         catch (Exception e)
                         {
-                            MessageBox.Show("Error when reading from registry (22414). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
+                            //MessageBox.Show("Error when reading from registry (22414). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
                             using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
                             {
                                 Logging.ATSAdminLog.Error("Error when reading from registry.");
@@ -254,7 +254,7 @@
                     }
                     else
                     {
-                        MessageBox.Show("Error when reading from registry (55222). Value missing. Key: " + regKey + " Value: " + regValue);
+                        //MessageBox.Show("Error when reading from registry (55222). Value missing. Key: " + regKey + " Value: " + regValue);
                         using (log4net.NDC.Push(string.Format("key={0}", regKey)))
                         {
                             using (log4net.NDC.Push("Value is missing"))
@@ -268,7 +268,7 @@
                 }
                 else
                 {
-                    MessageBox.Show("Error when reading from registry (55221). Key missing. Key: " + regKey + " Value: " + strRegTFTP_root);
+                    //MessageBox.Show("Error when reading from registry (55221). Key missing. Key: " + regKey + " Value: " + strRegTFTP_root);
                     using (log4net.NDC.Push(string.Format("key={0} value={1}", regKey, regValue)))
                     {
                         using (log4net.NDC.Push("Key is missing"))
@@ -295,7 +295,7 @@
                 }
                 catch (ArgumentNullException ex)
                 {
-                    MessageBox.Show("Error when reading from registry. Installation info missing, please run the " + ATSGlobals.ApplicationName + " installation program. (22411)");
+                    //MessageBox.Show("Error when reading from registry. Installation info missing, please run the " + ATSGlobals.ApplicationName + " installation program. (22411)");
                     using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))
                     {
                         using (log4net.NDC.Push("Installation info missing."))
@@ -308,7 +308,7 @@
                 }
                 catch (SecurityException e)
                 {
-                    MessageBox.Show("Error when reading from registry. You do not have the necessary permission (22412). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
+                    //MessageBox.Show("Error when reading from registry. You do not have the necessary permission (22412). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
                     using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
                     {
                         using (log4net.NDC.Push(string.Format("key={0} value={1}", regKey, regValue)))
@@ -324,7 +324,7 @@
                 }
                 catch (Exception e)
                 {
-                    MessageBox.Show("Error when reading from registry (22413). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
+                    //MessageBox.Show("Error when reading from registry (22413). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
                     using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
                     {
                         Logging.ATSAdminLog.Error("Error when reading from registry.");
@@ -343,7 +343,7 @@
                         }
                         catch (Exception e)
                         {
-                            MessageBox.Show("Error when reading from registry (22414). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
+                            //MessageBox.Show("Error when reading from registry (22414). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
                             using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
                             {
                                 using (log4net.NDC.Push(string.Format("key={0} value={1}", regKey, regValue)))
@@ -357,7 +357,7 @@
                     }
                     else
                     {
-                        MessageBox.Show("Error when reading from registry (55222). Value missing. Key: " + regKey + " Value: " + regValue);
+                        //MessageBox.Show("Error when reading from registry (55222). Value missing. Key: " + regKey + " Value: " + regValue);
 
                         using (log4net.NDC.Push(string.Format("key={0}", regKey)))
                         {
@@ -373,7 +373,7 @@
                 }
                 else
                 {
-                    MessageBox.Show("Error when reading from registry (55221). Key missing. Key: " + regKey + " Value: " + regValue);
+                    //MessageBox.Show("Error when reading from registry (55221). Key missing. Key: " + regKey + " Value: " + regValue);
 
                     using (log4net.NDC.Push(string.Format("key={0} value={1}", regKey, regValue)))
                     {
@@ -586,7 +586,7 @@
             }
             catch (ArgumentNullException e)
             {
-                MessageBox.Show("Error when reading from registry. Installation info missing, please run the " + ATSGlobals.ApplicationName + " installation program. (29411)");
+                //MessageBox.Show("Error when reading from registry. Installation info missing, please run the " + ATSGlobals.ApplicationName + " installation program. (29411)");
                 using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
                 {
                     using (log4net.NDC.Push(string.Format("key={0} value={1}", regKey, regValue)))
@@ -602,7 +602,7 @@
             }
             catch (SecurityException e)
             {
-                MessageBox.Show("Error when reading from registry. You do not have the necessary permission (29412). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
+                //MessageBox.Show("Error when reading from registry. You do not have the necessary permission (29412). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
                 using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
                 {
                     using (log4net.NDC.Push(string.Format("key={0} value={1}", regKey, regValue)))
@@ -618,7 +618,7 @@
             }
             catch (Exception e)
             {
-                MessageBox.Show("Error when reading from registry (29413). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
+                //MessageBox.Show("Error when reading from registry (29413). Key: " + regKey + " Value: " + regValue + " Error details:" + e.Message);
                 using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
                 {
                     using (log4net.NDC.Push(string.Format("key={0} value={1}", regKey, regValue)))
@@ -643,7 +643,7 @@
             }
             else
             {
-                MessageBox.Show("Error when reading from registry (59221). Key missing. Key: " + regKey + " Value: " + strRegTFTP_root);
+                //MessageBox.Show("Error when reading from registry (59221). Key missing. Key: " + regKey + " Value: " + strRegTFTP_root);
            
                     using (log4net.NDC.Push(string.Format("key={0} value={1}", regKey, regValue)))
                     {

 

  ViewVC Help
Powered by ViewVC 1.1.22