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

Diff of /trunk/TSAdminTool/ImageRuntimeConfig.cs

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

revision 4 by william, Wed Jul 11 14:19:13 2012 UTC revision 46 by william, Thu Jul 12 14:17:14 2012 UTC
# Line 685  namespace AnywhereTS Line 685  namespace AnywhereTS
685              catch (Exception e)              catch (Exception e)
686              {              {
687                  MessageBox.Show("Error cannot delete old config file (24573). Path: '" + pathfile + "'. Error: " + e.Message);                  MessageBox.Show("Error cannot delete old config file (24573). Path: '" + pathfile + "'. Error: " + e.Message);
688                    using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
689                    {
690                        using (log4net.NDC.Push(string.Format("file={0}", pathfile)))
691                        {
692                            Logging.ATSAdminLog.Error("Cannot delete old config file");
693                        }
694                    }
695                  return result;                  return result;
696              }              }
697                            
# Line 704  namespace AnywhereTS Line 711  namespace AnywhereTS
711              {              {
712                  // (Could be improved with auto-retry)                  // (Could be improved with auto-retry)
713                  MessageBox.Show("Error: Could not write configuration data to disk. Possibly the data is being accessed by another component right now or you do not have the sufficient rights. Please retry this operation a little later. Error details: "+ e.Message);                  MessageBox.Show("Error: Could not write configuration data to disk. Possibly the data is being accessed by another component right now or you do not have the sufficient rights. Please retry this operation a little later. Error details: "+ e.Message);
714                    using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
715                    {
716                        using (log4net.NDC.Push(string.Format("file={0}", pathfile)))
717                        {
718                            Logging.ATSAdminLog.Error("Could not write configuration data to disk");
719                        }
720                    }
721              }              }
722              finally              finally
723              {              {

Legend:
Removed from v.4  
changed lines
  Added in v.46

  ViewVC Help
Powered by ViewVC 1.1.22