Girish Dubey Posted July 22, 2015 Share Posted July 22, 2015 String was not recognized as a valid DateTime. 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.FormatException: String was not recognized as a valid DateTime.Source Error: Line 68: <body onload="changeHashOnLoad();"> Line 69: <form id="form1" runat="server" class="w-wppr">Line 70: <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true"> Line 71: <Scripts> Line 72: Link to comment Share on other sites More sharing options...
justsomeguy Posted July 22, 2015 Share Posted July 22, 2015 Which piece of code expects a DateTime object? Link to comment Share on other sites More sharing options...
Girish Dubey Posted July 23, 2015 Author Share Posted July 23, 2015 we usually get "System.FormatException" when we call first time if we try again we get ok result. i am not able to understand how to manage this time of exception. Link to comment Share on other sites More sharing options...
justsomeguy Posted July 23, 2015 Share Posted July 23, 2015 Well, all I can say from what you posted is that something is expecting a DateTime but isn't getting it. I don't know which piece of code it's referring to, but a stack trace or something would probably help you narrow that down. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now