Server Error in '/' Application.

String was not recognized as a valid Boolean.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: String was not recognized as a valid Boolean.

Source Error:


Line 19:         Dim endDate As Date = startDate.AddMonths(1).AddDays(-1)
Line 20: 
Line 21:         Dim dtEvents As DataTable = EventsHelper.GetSummaryEvents(DB, startDate, endDate, 0, 0, "", "", GlobalSiteId, 60, ShowFeaturedOnly:=False)
Line 22: 
Line 23:         If dtEvents IsNot Nothing Then

Source File: F:\inetpub\wwwroot\lcfpd.org\web\modules\events\HomePagePreservation.ascx.vb    Line: 21

Stack Trace:


[FormatException: String was not recognized as a valid Boolean.]
   System.Boolean.Parse(String value) +14933656
   System.String.System.IConvertible.ToBoolean(IFormatProvider provider) +19
   System.Data.Common.BooleanStorage.Set(Int32 record, Object value) +120
   System.Data.DataColumn.set_Item(Int32 record, Object value) +50

[ArgumentException: String was not recognized as a valid Boolean.Couldn't store <Education> in IsCancelled Column.  Expected type is Boolean.]
   System.Data.DataColumn.set_Item(Int32 record, Object value) +275
   System.Data.DataRow.set_ItemArray(Object[] value) +754
   Events.EventHelper.EventsHelper.GetSummaryEvents(Database DB, DateTime sDate, DateTime eDate, Int32 CategoryId, Int32 LocationId, String keywordSearch, String AgeSelection, Int32 SiteId, Int32 CacheDuration, Boolean IsRss, Boolean ShowActiveOnly, String MemberAccesslevelIds, Boolean IsAdmin, Boolean ShowFeaturedOnly) +15069
   modules_events_HomePagePreservation.LoadFromDB() in F:\inetpub\wwwroot\lcfpd.org\web\modules\events\HomePagePreservation.ascx.vb:21
   modules_events_HomePagePreservation.modules_events_HomePagePreservation_Load(Object sender, EventArgs e) in F:\inetpub\wwwroot\lcfpd.org\web\modules\events\HomePagePreservation.ascx.vb:13
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4081.0