Currently Online:



Can only see Scheduled Fighters

Posted 2019/12/20 1:22 PM by 53rd Street Gym

If I try to follow any of the links on my gym's home page or look at any fighters other than the ones that are currently scheduled I get a page that looks like this:
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 96: Return ""
Line 97: Else
Line 98: If DateDiff(DateInterval.Year, Now, CDate(FPDate)) > 0 Then
Line 99: Return DateDiff(DateInterval.Year, Now, CDate(FPDate)).ToString & " years"
Line 100: ElseIf DateDiff(DateInterval.Month, Now, CDate(FPDate)) > 0 Then

Source File: D:\home\site\wwwroot\mygym.aspx Line: 98

Stack Trace:

[InvalidCastException: Conversion from string " " to type 'Date' is not valid.]
Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value) +1287910
ASP.mygym_aspx.FormatNextFightDate(String FPDate) in D:\home\site\wwwroot\mygym.aspx:98
ASP.mygym_aspx.__DataBind__control15(Object sender, EventArgs e) in D:\home\site\wwwroot\mygym.aspx:339
System.Web.UI.Control.OnDataBinding(EventArgs e) +84
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +150
System.Web.UI.Control.DataBind() +17
System.Web.UI.Control.DataBindChildren() +185
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
System.Web.UI.Control.DataBind() +17
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +126

Posted 2019/12/20 5:50 PM by Game Admin

Sorry. On it.

Posted 2019/12/20 7:18 PM by Game Admin

Should be good now