I am currently get this unhandled exception in first time of a page load (onetime for application start) and after reloading the same page, I dont get this exception and everythings is OK . I'm
not use datetime conversion in my login.aspx page. this problem while cause when i use telerik control. it's attractive this exception in every page that use
Telerik Rad Script Manager and stop rendering page.
i will gratefull everyone that help me for solve this problem.
Server Error in '/' Application.
The string was not recognized as a valid DateTime. There is an unknown word starting at index 20.
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: The string was not recognized as a valid DateTime. There is an unknown word starting at index 20.
Source Error:
Line 231: <div class="login" id="loginPanel" runat="server">
Line 232: <%--<div id="login_trans"></div>--%>
Line 233: <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
Line 234: </telerik:RadScriptManager>
Line 235: <telerik:RadAjaxManager ID="radajaxmanager1" runat="server">
admintehran
0 Points
6 Posts
Unhandled Error 'The string was not recognized as a valid DateTime.'?
Jan 26, 2013 07:04 AM|LINK
hi there,
I am currently get this unhandled exception in first time of a page load (onetime for application start) and after reloading the same page, I dont get this exception and everythings is OK . I'm not use datetime conversion in my login.aspx page. this problem while cause when i use telerik control. it's attractive this exception in every page that use Telerik Rad Script Manager and stop rendering page.
i will gratefull everyone that help me for solve this problem.
Server Error in '/' Application.
The string was not recognized as a valid DateTime. There is an unknown word starting at index 20.
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: The string was not recognized as a valid DateTime. There is an unknown word starting at index 20.
Source Error:
Source File: d:\HSE_NIGC_TFS\HSE_NIGC\DAP.Web.HSE\DAP.Web.HSE.WebUI\Login.aspx Line: 233
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
oned_gk
All-Star
31511 Points
6431 Posts
Re: Unhandled Error 'The string was not recognized as a valid DateTime.'?
Jan 26, 2013 11:24 AM|LINK
make sure the datetome format dd/MM/yyyy or MM/dd/yyyy
admintehran
0 Points
6 Posts
Re: Unhandled Error 'The string was not recognized as a valid DateTime.'?
Jan 26, 2013 01:59 PM|LINK
the format of my development machine is M/d/yyyy. I test the two mentioned format and again face with this exception at application start up.
oned_gk
All-Star
31511 Points
6431 Posts
Re: Unhandled Error 'The string was not recognized as a valid DateTime.'?
Jan 26, 2013 02:09 PM|LINK
Pengzhen Son...
Star
8208 Points
845 Posts
Microsoft
Re: Unhandled Error 'The string was not recognized as a valid DateTime.'?
Jan 28, 2013 05:58 AM|LINK
Hi,
You can try specify the "en-US" culture in the globalization section in the Web.Config file:
For detailed information you can refer here
http://www.telerik.com/community/forums/aspnet-ajax/calendar/radscheduler-bug-string-was-not-recognized-as-a-valid-datetime.aspx
Hope it can help you.
Feedback to us
Develop and promote your apps in Windows Store
admintehran
0 Points
6 Posts
Re: Unhandled Error 'The string was not recognized as a valid DateTime.'?
Jan 30, 2013 05:01 AM|LINK
I try this solution but it dos'nt work. I confusing by this problem and I don't know why this exceptions cause?
admintehran
0 Points
6 Posts
Re: Unhandled Error 'The string was not recognized as a valid DateTime.'?
Jan 30, 2013 05:03 AM|LINK
i try using by scriptmanager this solution not worked.