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

Source Error:


Line 387:        catch (Exception ex)
Line 388:        {
Line 389:            throw ex;
Line 390:
Line 391:            //return ds;

Source File: c:\inetpub\vhosts\sldcorissa.org.in\httpdocs\App_Code\Connection.cs    Line: 389

Stack Trace:


[SqlException (0x80131904): Conversion failed when converting date and/or time from character string.]
   Connection.GetDataSet(CommandType cmdType, String cmdText, SqlParameter[] cmdParameters) in c:\inetpub\vhosts\sldcorissa.org.in\httpdocs\App_Code\Connection.cs:389
   StateLoadShare.Show() in c:\inetpub\vhosts\sldcorissa.org.in\httpdocs\StateLoadShare.aspx.cs:44
   StateLoadShare.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\sldcorissa.org.in\httpdocs\StateLoadShare.aspx.cs:23
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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