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

Diff of /trunk/TSAdminTool/UNCconverter.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 64 by william, Thu Jul 12 18:56:31 2012 UTC
# Line 45  namespace AnywhereTS Line 45  namespace AnywhereTS
45                ref buffer, ref size);                ref buffer, ref size);
46              if (retVal != 0)              if (retVal != 0)
47              {              {
48                throw new Win32Exception(retVal);                  Win32Exception ex = new Win32Exception(retVal);
49                    using (log4net.NDC.Push(string.Format("Win32Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))
50                    {
51                        Logging.ATSAdminLog.Error(string.Format("Failed to convert LOCAL Path: {0} to a UNC Path", localPath));
52                    }
53                    return "";
54              }              }
55            }            }
56            else            else
57            {            {
58              throw new Win32Exception(retVal);                Win32Exception ex = new Win32Exception(retVal);
59                  using (log4net.NDC.Push(string.Format("Win32Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", ex.Message, System.Environment.NewLine, ex.ToString())))
60                  {
61                      Logging.ATSAdminLog.Error(string.Format("Failed to convert LOCAL Path: {0} to a UNC Path", localPath));
62                  }
63                  return "";
64            }            }
65            return buffer.ToString();            return buffer.ToString();
66          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.22