Server Error in '/' Application.

Specified cast is not valid.

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.InvalidCastException: Specified cast is not valid.

Source Error:


Line 792:                            currRecur.RecurrenceType = GetSqlString(SqlRdr["Type"]);
Line 793:                            currRecur.RecurrenceDays = GetSqlString(SqlRdr["RecurrenceDays"]);
Line 794:                            currRecur.SequenceNumber = (int)SqlRdr["RecurrenceSequenceNo"];
Line 795:                            currEvent.AddRecurrence(currRecur);
Line 796:                            RecurrenceList.Add(currRecur);

Source File: d:\inetpub\MissouriState.info\feeds\calendar.aspx    Line: 794

Stack Trace:


[InvalidCastException: Specified cast is not valid.]
   ASP.feeds_calendar_aspx.Page_Load(Object sender, EventArgs e) in d:\inetpub\MissouriState.info\feeds\calendar.aspx:794
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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