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

Diff of /trunk/TSAdminTool/ProSupport.cs

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

revision 20 by william, Wed Jul 11 18:48:42 2012 UTC revision 46 by william, Thu Jul 12 14:17:14 2012 UTC
# Line 248  namespace AnywhereTS Line 248  namespace AnywhereTS
248                  catch (Exception e)                  catch (Exception e)
249                  {                  {
250                      MessageBox.Show("Could not update TFTP server '" + GetTftpPath(row) + "' (22181). Error: " + e.Message);                      MessageBox.Show("Could not update TFTP server '" + GetTftpPath(row) + "' (22181). Error: " + e.Message);
251                        using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
252                        {
253                            using (log4net.NDC.Push(string.Format("tftpPath={0}", GetTftpPath(row))))
254                            {
255                                Logging.ATSAdminLog.Error("Could not update TFTP server");
256                            }
257                        }
258                  }                  }
259                            
260                  // Try to set rights for image the image file                  // Try to set rights for image the image file
# Line 283  namespace AnywhereTS Line 290  namespace AnywhereTS
290                  catch (Exception e)                  catch (Exception e)
291                  {                  {
292                      MessageBox.Show("Could not update TFTP server '" + GetTftpPath(row) + "' (22381). Error: " + e.Message);                      MessageBox.Show("Could not update TFTP server '" + GetTftpPath(row) + "' (22381). Error: " + e.Message);
293                        using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
294                        {
295                            using (log4net.NDC.Push(string.Format("tftpPath={0}", GetTftpPath(row))))
296                            {
297                                Logging.ATSAdminLog.Error("Could not update TFTP server");
298                            }
299                        }
300                  }                  }
301              }              }
302          }          }
# Line 302  namespace AnywhereTS Line 316  namespace AnywhereTS
316                  catch (Exception ex)                  catch (Exception ex)
317                  {                  {
318                      MessageBox.Show("Cannot set access rights for client configuration. Application will abort. Error: " + ex.Message);                      MessageBox.Show("Cannot set access rights for client configuration. Application will abort. Error: " + ex.Message);
319                        using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))
320                        {
321                            Logging.ATSAdminLog.Error("Cannot set access rights for client configuration");
322                        }
323                      Application.Exit();                      Application.Exit();
324                      return;                      return;
325                  }                  }
# Line 364  namespace AnywhereTS Line 382  namespace AnywhereTS
382              {              {
383                  //improve autoretry                  //improve autoretry
384                  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 later (52044). 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 later (52044). Error details: " + e.Message);
385                    using (log4net.NDC.Push(string.Format("SqlException: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString())))
386                    {
387                        using (log4net.NDC.Push(string.Format("path={0}", path)))
388                        {
389                            Logging.ATSAdminLog.Error("Could not write configuration data to disk");
390                        }
391                    }
392              }              }
393    
394              finally              finally

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

  ViewVC Help
Powered by ViewVC 1.1.22