Update for HttpBL.aspx.cs

Jan 28, 2009 at 12:42 AM
Edited Jan 28, 2009 at 12:44 AM
I noticed a strange error in the HttpBL.aspx.cs file having to do with DateTime parsing.  I haven't had time to figure out exactly what is going on but a simple change has bypassed the error for now.  If you experience a problem you can make this temporary change and it will prevent the page from crashing your GateKeeperManager page.

Find the line:

entry.Date = DateTime.Parse(node.Attributes["date"].InnerText ?? string.Empty, CultureInfo.InvariantCulture)

and change it to be:

DateTime dateValue;
try {
    dateValue = DateTime.Parse(node.Attributes["date"].InnerText ?? string.Empty, CultureInfo.InvariantCulture);
catch (FormatException) {
  dateValue = DateTime.Parse("01/01/01");
entry.Date = dateValue;

This will cause any date parsing to simply return 01/01/01.  I will have a correction soon but for now this will resolve the issues.