11 |
using System.IO; |
using System.IO; |
12 |
using System.Management; |
using System.Management; |
13 |
using System.Net; |
using System.Net; |
14 |
|
using log4net; |
15 |
|
|
16 |
// Support class for the AnywhereTS version. This file should only be included in the Pro version. |
// Support class for the AnywhereTS version. This file should only be included in the Pro version. |
17 |
namespace AnywhereTS |
namespace AnywhereTS |
227 |
} |
} |
228 |
} |
} |
229 |
else |
else |
230 |
throw new Exception("Unknown TFTP mode 28158"); |
{ |
231 |
|
string error = "Error: Unknown TFTP Config mode (28158)"; |
232 |
|
using (log4net.NDC.Push(string.Format("tftpConfig={0}", ATSGlobals.tftpConfig))) |
233 |
|
{ |
234 |
|
Logging.ATSAdminLog.Error(error); |
235 |
|
} |
236 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("tftpConfig={0}", ATSGlobals.tftpConfig))); |
237 |
|
return; |
238 |
|
} |
239 |
} |
} |
240 |
|
|
241 |
// Copy image file to all external tftp directories/servers |
// Copy image file to all external tftp directories/servers |
355 |
} |
} |
356 |
} |
} |
357 |
else |
else |
358 |
throw new Exception("Unknown TFTP mode 48158"); |
{ |
359 |
|
string error = "Error: Unknown TFTP Config mode (48158)"; |
360 |
|
using (log4net.NDC.Push(string.Format("tftpConfig={0}", ATSGlobals.tftpConfig))) |
361 |
|
{ |
362 |
|
Logging.ATSAdminLog.Error(error); |
363 |
|
} |
364 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("tftpConfig={0}", ATSGlobals.tftpConfig))); |
365 |
|
return; |
366 |
|
} |
367 |
} |
} |
368 |
|
|
369 |
|
|
481 |
} |
} |
482 |
} |
} |
483 |
else |
else |
484 |
throw new Exception("Unknown TFTP mode 88158"); |
{ |
485 |
|
string error = "Error: Unknown TFTP Config mode (88158)"; |
486 |
|
using (log4net.NDC.Push(string.Format("tftpConfig={0}", ATSGlobals.tftpConfig))) |
487 |
|
{ |
488 |
|
Logging.ATSAdminLog.Error(error); |
489 |
|
} |
490 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("tftpConfig={0}", ATSGlobals.tftpConfig))); |
491 |
|
return; |
492 |
|
} |
493 |
|
|
494 |
WriteHostsFiles(); |
WriteHostsFiles(); |
495 |
ATSImageRuntimeConfig currentConfig = new ATSImageRuntimeConfig(); |
ATSImageRuntimeConfig currentConfig = new ATSImageRuntimeConfig(); |