--- trunk/TSControlPanel/frmConfigureControlPanel.cs 2012/07/12 13:01:44 45 +++ trunk/TSControlPanel/frmConfigureControlPanel.cs 2012/07/12 14:17:14 46 @@ -31,6 +31,10 @@ namespace AnywhereTS catch (SqlException sql_ex) { 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"); + } return; }