Server Error in '/' Application.

Conversion from type 'DBNull' to type 'Date' 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: Conversion from type 'DBNull' to type 'Date' is not valid.

Source Error:


Line 2598:								If InStr(strText, "homered") Or InStr(strText, "home run") Or InStr(strText, "stole home") Or CountOccurrences("scored", strText) > 0 Then
Line 2599:									If StreamURL <> "" Then
Line 2600:										Dim d = CDate(myReaderPlayByPlay("dtCreated"))
Line 2601:										Dim totalSeconds = d.Second + 60*(d.Minute) + 3600*(d.Hour) - StreamDelay
Line 2602:										videoLink = " <a href=""" & StreamURL & "&t=" & totalSeconds & """>Video</a>"

Source File: D:\WEB\www.easyscore.com\App_Code\utility.vb    Line: 2600

Stack Trace:


[InvalidCastException: Conversion from type 'DBNull' to type 'Date' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(Object Value) +456008
   Utility.ConstructPlayByPlayText(Int32 GameID, Boolean ScoringOnly, String Source, Boolean AdminEdit) in D:\WEB\www.easyscore.com\App_Code\utility.vb:2600
   _PlayByPlay.Page_Load(Object obj, EventArgs e) in D:\WEB\www.easyscore.com\live\playbyplay.aspx.vb:174
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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