dotnet distributed apps:
I have been using the configuration management application block for a while
now, recently I have been having an error message from CAMB saying:
-------------------------------------------------------------------------------------
Specified argument was out of the range of valid values.
Parameter name: Year, Month, and Day parameters describe an unrepresentable
DateTime.
--------------------------------------------------------------------------------------
the code is very simple:
Dim oConfig As New Hashtable
Dim sParam As String
oConfig = ConfigurationManager.Read("UserProfile")
sParam = oConfig("DefaultCategory")
this is the full error stack:
---------------------------------------------------------------------------------------------
Exception Information
*********************************************
Exception Type: System.ArgumentOutOfRangeException
Message: Specified argument was out of the range of valid values.
Parameter name: Year, Month, and Day parameters describe an unrepresentable
DateTime.
ActualValue: NULL
ParamName: Year, Month, and Day parameters describe an unrepresentable
DateTime.
TargetSite: Int64 DateToTicks(Int32, Int32, Int32)
HelpLink: NULL
Source: mscorlib
StackTrace Information
*********************************************
at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour,
Int32 minute, Int32 second)
at
Microsoft.ApplicationBlocks.ConfigurationManagement.ExtendedFormatHelper.IsExtendedExpired(String
format, DateTime getTime, DateTime nowTime) in C:\Program Files\Microsoft
Application Blocks for .NET\Configuration
Management\Code\VB\Microsoft.ApplicationBlocks.ConfigurationManagement\ExtendedFormatHelper.vb:line 323
at
Microsoft.ApplicationBlocks.ConfigurationManagement.ConfigurationManagementCache.Get(String
key) in C:\Program Files\Microsoft Application Blocks for .NET\Configuration
Management\Code\VB\Microsoft.ApplicationBlocks.ConfigurationManagement\ConfigurationManagementCache.vb:line 113
at
Microsoft.ApplicationBlocks.ConfigurationManagement.ConfigurationManagementCache.get_Item(String
key) in C:\Program Files\Microsoft Application Blocks for .NET\Configuration
Management\Code\VB\Microsoft.ApplicationBlocks.ConfigurationManagement\ConfigurationManagementCache.vb:line 60
at
Microsoft.ApplicationBlocks.ConfigurationManagement.ConfigurationManager.Read(String
sectionName) in C:\Program Files\Microsoft Application Blocks for
..NET\Configuration
Management\Code\VB\Microsoft.ApplicationBlocks.ConfigurationManagement\ConfigurationManager.vb:line 125
at BBKParser.oReport.GetReportConfig() in C:\Projects\Blue
Books\BBKParser\EzParse.vb:line 385
at BBKParser.oReport.BuildReport(String sReportName, String[] oData) in
C:\Projects\Blue Books\BBKParser\EzParse.vb:line 137