ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/TSControlPanel/frmConfigureControlPanel.cs
(Generate patch)

Comparing trunk/TSControlPanel/frmConfigureControlPanel.cs (file contents):
Revision 46 by william, Thu Jul 12 14:17:14 2012 UTC vs.
Revision 49 by william, Thu Jul 12 14:36:54 2012 UTC

--- trunk/TSControlPanel/frmConfigureControlPanel.cs	2012/07/12 14:17:14	46
+++ trunk/TSControlPanel/frmConfigureControlPanel.cs	2012/07/12 14:36:54	49
@@ -33,7 +33,10 @@ namespace AnywhereTS
                 MessageBox.Show("Could not connect to the datbase server. Please check your spelling and your connections. SQL Server error:\n" + sql_ex.Number.ToString() + " " + sql_ex.Message.ToString());
                 using (log4net.NDC.Push(string.Format("SqlException: ID={0} MESSAGE={1}{2}Diagnostics:{2}{3}", sql_ex.Number.ToString(), sql_ex.Message, System.Environment.NewLine, sql_ex.ToString())))
                 {
-                    Logging.ATSAdminLog.Error("Could not connect to the datbase server");
+                    using (log4net.NDC.Push(string.Format("ConnectionString={0}", Properties.Settings.Default.atsConnectionString)))
+                    {
+                        Logging.TSControlPanelLog.Error("Could not connect to the datbase server");
+                    }
                 }
                 return;
             }