Parent Directory
|
Revision Log
|
Patch
--- trunk/TSAdminTool/atsDataSet.Designer.cs 2012/07/12 17:34:46 61 +++ trunk/TSAdminTool/atsDataSet.Designer.cs 2012/07/12 18:13:24 62 @@ -10,6 +10,8 @@ #pragma warning disable 1591 +using System; +using System.Net; namespace AnywhereTS { @@ -2835,11 +2837,17 @@ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public string ClientName { get { - try { + try + { return ((string)(this[this.tableClient.ClientNameColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClientName\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ClientName from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -2863,8 +2871,13 @@ try { return ((int)(this[this.tableClient.GroupColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Group\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Group from table: {1}", this.tableClient.TableName)); + } + return -1; } } set { @@ -2878,8 +2891,13 @@ try { return ((string)(this[this.tableClient.ScreenResolutionColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ScreenResolution\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ScreenResolution from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -2893,8 +2911,13 @@ try { return ((string)(this[this.tableClient.ScreenColorDepthColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ScreenColorDepth\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ScreenColorDepth from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -2908,8 +2931,13 @@ try { return ((bool)(this[this.tableClient.AutoPlayCDColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'AutoPlayCD\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read AutoPlayCD from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -2923,8 +2951,13 @@ try { return ((string)(this[this.tableClient.ServerNameColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ServerName\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ServerName from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -2938,8 +2971,13 @@ try { return ((string)(this[this.tableClient.SessionTypeColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'SessionType\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read SessionType from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -2953,8 +2991,13 @@ try { return ((bool)(this[this.tableClient.ReconnectPromptColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ReconnectPrompt\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ReconnectPrompt from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -2968,8 +3011,13 @@ try { return ((int)(this[this.tableClient.AudioLevelColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'AudioLevel\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read AudioLevel from table: {1}", this.tableClient.TableName)); + } + return -1; } } set { @@ -2983,8 +3031,13 @@ try { return ((int)(this[this.tableClient.MouseResolutionColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MouseResolution\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read MouseResolution from table: {1}", this.tableClient.TableName)); + } + return -1; } } set { @@ -2998,8 +3051,13 @@ try { return ((string)(this[this.tableClient.CommentColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Comment\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Comment from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3013,8 +3071,13 @@ try { return ((string)(this[this.tableClient.UsernameColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Username\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Username from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3028,8 +3091,13 @@ try { return ((string)(this[this.tableClient.PasswordColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Password from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3043,8 +3111,13 @@ try { return ((string)(this[this.tableClient.ServerDomainColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ServerDomain\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ServerDomain from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3058,8 +3131,13 @@ try { return ((string)(this[this.tableClient.ServerVersionColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ServerVersion\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ServerVersion from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3073,8 +3151,13 @@ try { return ((bool)(this[this.tableClient.RedirectFloppyColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'RedirectFloppy\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read RedirectFloppy from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3088,8 +3171,13 @@ try { return ((bool)(this[this.tableClient.RedirectCDColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'RedirectCD\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read RedirectCD from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3103,8 +3191,13 @@ try { return ((bool)(this[this.tableClient.RedirectSoundColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'RedirectSound\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read RedirectSound from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3118,8 +3211,13 @@ try { return ((bool)(this[this.tableClient.DigitalMonitorColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DigitalMonitor\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read DigitalMonitor from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3133,8 +3231,13 @@ try { return ((string)(this[this.tableClient.IcaProtocolColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IcaProtocol\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read IcaProtocol from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3148,8 +3251,13 @@ try { return ((string)(this[this.tableClient.IcaEncryptionColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IcaEncryption\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read IcaEncryption from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3163,8 +3271,13 @@ try { return ((bool)(this[this.tableClient.IcaCompressionColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IcaCompression\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read IcaCompression from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3178,8 +3291,13 @@ try { return ((string)(this[this.tableClient.IcaAudioQualityColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IcaAudioQuality\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read IcaAudioQuality from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3193,8 +3311,13 @@ try { return ((bool)(this[this.tableClient.MiscFlippedFixColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MiscFlippedFix\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read MiscFlippedFix from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3208,8 +3331,13 @@ try { return ((bool)(this[this.tableClient.MiscMousefixColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MiscMousefix\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read MiscMousefix from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3223,8 +3351,13 @@ try { return ((bool)(this[this.tableClient.MiscNoAccelerationColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MiscNoAcceleration\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read MiscNoAcceleration from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3238,8 +3371,13 @@ try { return ((bool)(this[this.tableClient.DailyRebootColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DailyReboot\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read DailyReboot from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3253,8 +3391,13 @@ try { return ((string)(this[this.tableClient.KeyboardMapColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'KeyboardMap\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read KeyboardMap from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3268,8 +3411,13 @@ try { return ((string)(this[this.tableClient.TimeZoneColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TimeZone\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read TimeZone from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3283,8 +3431,13 @@ try { return ((bool)(this[this.tableClient.RedirectCom1Column])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'RedirectCom1\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read RedirectCom1 from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3298,8 +3451,13 @@ try { return ((bool)(this[this.tableClient.RedirectCom2Column])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'RedirectCom2\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read RedirectCom2 from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3313,8 +3471,13 @@ try { return ((int)(this[this.tableClient.UsbDriveColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'UsbDrive\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read UsbDrive from table: {1}", this.tableClient.TableName)); + } + return -1; } } set { @@ -3328,8 +3491,13 @@ try { return ((string)(this[this.tableClient.UsbDriveNameColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'UsbDriveName\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read UsbDriveName from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3343,8 +3511,13 @@ try { return ((bool)(this[this.tableClient.NumLockColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'NumLock\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read NumLock from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3355,7 +3528,18 @@ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public int ServerPort { get { - return ((int)(this[this.tableClient.ServerPortColumn])); + try + { + return ((int)(this[this.tableClient.ServerPortColumn])); + } + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ServerPort from table: {1}", this.tableClient.TableName)); + } + return -1; + } } set { this[this.tableClient.ServerPortColumn] = value; @@ -3368,8 +3552,13 @@ try { return ((global::System.DateTime)(this[this.tableClient.CreatedColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Created\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Created from table: {1}", this.tableClient.TableName)); + } + return DateTime.Now; } } set { @@ -3383,8 +3572,13 @@ try { return ((global::System.DateTime)(this[this.tableClient.ModifiedColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Modified\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Modified from table: {1}", this.tableClient.TableName)); + } + return DateTime.Now; } } set { @@ -3398,8 +3592,13 @@ try { return ((string)(this[this.tableClient.IcaApplicationSetColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IcaApplicationSet\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read IcaApplicationSet from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3413,8 +3612,13 @@ try { return ((string)(this[this.tableClient.IcaServerColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IcaServer\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read IcaServer from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3428,8 +3632,13 @@ try { return ((string)(this[this.tableClient.TempStringColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TempString\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read TempString from table: {1}", this.tableClient.TableName)); + } + return ""; } } set { @@ -3443,8 +3652,13 @@ try { return ((bool)(this[this.tableClient.TempBitColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TempBit\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read TempBit from table: {1}", this.tableClient.TableName)); + } + return false; } } set { @@ -3458,8 +3672,13 @@ try { return ((int)(this[this.tableClient.TempIntColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TempInt\' in table \'Client\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read TempInt from table: {1}", this.tableClient.TableName)); + } + return -1; } } set { @@ -3908,8 +4127,13 @@ try { return ((int)(this[this.tableGroup.ParentColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Parent\' in table \'Group\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Parent from table: {1}", this.tableGroup.TableName)); + } + return -1; } } set { @@ -3923,8 +4147,13 @@ try { return ((string)(this[this.tableGroup.NameColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Group\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Name from table: {1}", this.tableGroup.TableName)); + } + return ""; } } set { @@ -3973,8 +4202,13 @@ try { return ((bool)(this[this.tableImage.UseDHCPColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'UseDHCP\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read UseDHCP from table: {1}", this.tableImage.TableName)); + } + return true; } } set { @@ -3988,8 +4222,13 @@ try { return ((string)(this[this.tableImage.ClientIPAddressColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClientIPAddress\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ClientIPAddress from table: {1}", this.tableImage.TableName)); + } + return IPAddress.None.ToString(); } } set { @@ -4003,8 +4242,13 @@ try { return ((string)(this[this.tableImage.ClientIPNetmaskColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClientIPNetmask\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ClientIPNetmask from table: {1}", this.tableImage.TableName)); + } + return IPAddress.None.ToString(); } } set { @@ -4018,8 +4262,13 @@ try { return ((string)(this[this.tableImage.ClientIPGatewayColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClientIPGateway\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ClientIPGateway from table: {1}", this.tableImage.TableName)); + } + return IPAddress.None.ToString(); } } set { @@ -4033,8 +4282,13 @@ try { return ((string)(this[this.tableImage.ClientIPDNS1Column])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClientIPDNS1\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ClientIPDNS1 from table: {1}", this.tableImage.TableName)); + } + return IPAddress.None.ToString(); } } set { @@ -4048,8 +4302,13 @@ try { return ((string)(this[this.tableImage.ClientIPDNS2Column])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClientIPDNS2\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ClientIPDNS2 from table: {1}", this.tableImage.TableName)); + } + return IPAddress.None.ToString(); } } set { @@ -4063,8 +4322,13 @@ try { return ((string)(this[this.tableImage.ClientIPDNSSuffixColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClientIPDNSSuffix\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ClientIPDNSSuffix from table: {1}", this.tableImage.TableName)); + } + return ""; } } set { @@ -4078,8 +4342,13 @@ try { return ((string)(this[this.tableImage.ClientBootServerColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClientBootServer\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ClientBootServer from table: {1}", this.tableImage.TableName)); + } + return ""; } } set { @@ -4093,8 +4362,13 @@ try { return ((bool)(this[this.tableImage.OnlyUseRDPColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'OnlyUseRDP\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read OnlyUseRDP from table: {1}", this.tableImage.TableName)); + } + return false; } } set { @@ -4108,8 +4382,13 @@ try { return ((int)(this[this.tableImage.BootPictureColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BootPicture\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read BootPicture from table: {1}", this.tableImage.TableName)); + } + return -1; } } set { @@ -4123,8 +4402,13 @@ try { return ((string)(this[this.tableImage.NetworkDriverColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'NetworkDriver\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read NetworkDriver from table: {1}", this.tableImage.TableName)); + } + return ""; } } set { @@ -4138,8 +4422,13 @@ try { return ((int)(this[this.tableImage.SoundTypeColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'SoundType\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read SoundType from table: {1}", this.tableImage.TableName)); + } + return -1; } } set { @@ -4153,8 +4442,13 @@ try { return ((string)(this[this.tableImage.SoundDriverColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'SoundDriver\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read SoundDriver from table: {1}", this.tableImage.TableName)); + } + return ""; } } set { @@ -4178,8 +4472,13 @@ try { return ((string)(this[this.tableImage.GraphicsDriverColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'GraphicsDriver\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read GraphicsDriver from table: {1}", this.tableImage.TableName)); + } + return ""; } } set { @@ -4193,8 +4492,13 @@ try { return ((bool)(this[this.tableImage.ConfigFileColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ConfigFile\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read ConfigFile from table: {1}", this.tableImage.TableName)); + } + return false; } } set { @@ -4208,8 +4512,13 @@ try { return ((int)(this[this.tableImage.DebugColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Debug\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Debug from table: {1}", this.tableImage.TableName)); + } + return -1; } } set { @@ -4223,8 +4532,13 @@ try { return ((int)(this[this.tableImage.BootPictureWidthColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BootPictureWidth\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read BootPictureWidth from table: {1}", this.tableImage.TableName)); + } + return -1; } } set { @@ -4238,8 +4552,13 @@ try { return ((int)(this[this.tableImage.BootPictureHeightColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BootPictureHeight\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read BootPictureHeight from table: {1}", this.tableImage.TableName)); + } + return -1; } } set { @@ -4253,8 +4572,13 @@ try { return ((int)(this[this.tableImage.BootPictureProgressBarColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BootPictureProgressBar\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read BootPictureProgressBar from table: {1}", this.tableImage.TableName)); + } + return -1; } } set { @@ -4268,8 +4592,13 @@ try { return ((byte[])(this[this.tableImage.BootPicturePngColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BootPicturePng\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read BootPicturePng from table: {1}", this.tableImage.TableName)); + } + return new byte[0]; } } set { @@ -4283,8 +4612,13 @@ try { return ((int)(this[this.tableImage.BootPackageColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BootPackage\' in table \'Image\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read BootPackage from table: {1}", this.tableImage.TableName)); + } + return -1; } } set { @@ -4558,8 +4892,13 @@ try { return ((string)(this[this.tableTftpServer.LocalPathColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'LocalPath\' in table \'TftpServer\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read LocalPath from table: {1}", this.tableTftpServer.TableName)); + } + return ""; } } set { @@ -4608,8 +4947,13 @@ try { return ((string)(this[this.tableAppInfo.ValueColumn])); } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'AppInfo\' is DBNull.", e); + catch (global::System.Exception e) + { + using (log4net.NDC.Push(string.Format("Exception: MESSAGE={0}{1}Diagnostics:{1}{2}", e.Message, System.Environment.NewLine, e.ToString()))) + { + Logging.ATSAdminLog.Error(string.Format("Failed to read Value from table: {1}", this.tableAppInfo.TableName)); + } + return ""; } } set {
ViewVC Help | |
Powered by ViewVC 1.1.22 |