This is a migrated thread and some comments may be shown as answers.

The string was not recognized as a valid DateTime.

0 Answers 184 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Reza
Top achievements
Rank 1
Reza asked on 30 Jan 2013, 12:29 PM

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:

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">

Source File: d:\HSE_NIGC_TFS\HSE_NIGC\DAP.Web.HSE\DAP.Web.HSE.WebUI\Login.aspx    Line: 233

Stack Trace:

[FormatException: The string was not recognized as a valid DateTime. There is an unknown word starting at index 20.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +3211050
   System.DateTime.Parse(String s, IFormatProvider provider) +28
   System.Windows.Forms.TypeLibraryTimeStampAttribute..ctor(String timestamp) +38
   System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) +0
   System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) +46
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +529
   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
   System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
   System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +76
   System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +388
   System.Web.UI.ScriptManager..ctor() +26
   Telerik.Web.UI.RadScriptManager..ctor() +68
   ASP.login_aspx.__BuildControlRadScriptManager1() in d:\HSE_NIGC_TFS\HSE_NIGC\DAP.Web.HSE\DAP.Web.HSE.WebUI\Login.aspx:233
   ASP.login_aspx.__BuildControlloginPanel() in d:\HSE_NIGC_TFS\HSE_NIGC\DAP.Web.HSE\DAP.Web.HSE.WebUI\Login.aspx:231
   ASP.login_aspx.__BuildControlform1() in d:\HSE_NIGC_TFS\HSE_NIGC\DAP.Web.HSE\DAP.Web.HSE.WebUI\Login.aspx:61
   ASP.login_aspx.__BuildControlTree(login_aspx __ctrl) in d:\HSE_NIGC_TFS\HSE_NIGC\DAP.Web.HSE\DAP.Web.HSE.WebUI\Login.aspx:1
   ASP.login_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c7868279\54f6c8a3\App_Web_login.aspx.cdcab7d2.3njsl4kc.0.cs:0
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +54
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.login_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c7868279\54f6c8a3\App_Web_login.aspx.cdcab7d2.3njsl4kc.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


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

No answers yet. Maybe you can help?

Tags
ScriptManager and StyleSheetManager
Asked by
Reza
Top achievements
Rank 1
Share this question
or