Server Error in '/' Application.

Conversion failed when converting date and/or time from character string.

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.Data.OleDb.OleDbException: Conversion failed when converting date and/or time from character string.

Source Error:


Line 33:             // Load template file into a string
Line 34:             Response.Clear();
Line 35:             Response.Write(myWMS.RunTemplate("/_templates/viewlistcontent.html"));
Line 36:         }
Line 37:     }

Source File: c:\inetpub\vhosts\sccsa.org.au\httpdocs\viewlistcontent.aspx.cs    Line: 35

Stack Trace:


[OleDbException (0x80040e07): Conversion failed when converting date and/or time from character string.]
   System.Data.OleDb.OleDbDataReader.ProcessResults(OleDbHResult hr) +1030650
   System.Data.OleDb.OleDbDataReader.NextResult() +421
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +235
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +116
   System.Data.OleDb.OleDbCommand.ExecuteDbDataReader(CommandBehavior behavior) +4
   System.Data.Common.DbCommand.ExecuteReader() +12
   Categorisation.FindContent(String dataType, String[] selectedOptions) in X:\Dev\Sunshine Coast Churches Soccer 2012\Source\WMS\Categorisation.cs:1551
   wms.ProcessTemplate(String template) in X:\Dev\Sunshine Coast Churches Soccer 2012\Source\WMS\wms.cs:2081
   wms.RunTemplate(String strTemplateFile) in X:\Dev\Sunshine Coast Churches Soccer 2012\Source\WMS\wms.cs:1510
   viewlistcontent.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\sccsa.org.au\httpdocs\viewlistcontent.aspx.cs:35
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


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