Server Error in '/' Application.

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

Source Error:


Line 288:            
Line 289:            'Get The day's Agenda
Line 290:            Dim starttime As DateTime = CDate(startdate)
Line 291:            Dim endtime As DateTime = CDate(enddate)
Line 292:            

Source File: C:\Websites\selectbiosciences2.0\wwwroot\conferences\agendaPF.aspx    Line: 290

Stack Trace:


[InvalidCastException: Conversion from string "" to type 'Date' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value) +226
   ASP.conferences_agendapf_aspx.page_load() in C:\Websites\selectbiosciences2.0\wwwroot\conferences\agendaPF.aspx:290
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +12
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +11138094
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974