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 |
} |
} |