Aug 23, 2012, 3:17 PM
[CLOSED] TimeField Localization Error
Hello,
We have an application using Ext.net 1.5 and we are getting the following error when using es-HN localization
The locale is set through the "Ext.Net.Locale" Session variable and is set to the "es-HN" string.
The field works fine if the localization is set to "en-US".
We have an application using Ext.net 1.5 and we are getting the following error when using es-HN localization
Server Error in '/' Application.
--------------------------------------------------------------------------------
String was not recognized as a valid TimeSpan.
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 TimeSpan.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FormatException: String was not recognized as a valid TimeSpan.]
System.Globalization.TimeSpanParse.ProcessTerminal_HM(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result) +3141383
System.Globalization.TimeSpanParse.ProcessTerminalState(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result) +9434416
System.Globalization.TimeSpanParse.TryParseTimeSpan(String input, TimeSpanStandardStyles style, IFormatProvider formatProvider, TimeSpanResult& result) +222
System.Globalization.TimeSpanParse.Parse(String input, IFormatProvider formatProvider) +68
System.TimeSpan.Parse(String s) +6
Ext.Net.TimeField.set_Value(Object value) in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v1\Ext.Net\Ext\Form\TimeField.cs:217
Ext.Net.TimeField.LoadPostData(String postDataKey, NameValueCollection postCollection) in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v1\Ext.Net\Ext\Form\TimeField.cs:246
Ext.Net.Field.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) in C:\Users\Geoffrey McGill\Documents\Visual Studio 2010\Projects\Ext.NET\v1\Ext.Net\Ext\Form\Field.cs:1156
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +327
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +878
This is the declaration of the TimeField<ext:TimeField ID="ff_time_from" runat="server" Flex="1" Width="80" CausesValidation="false" />
The locale is set through the "Ext.Net.Locale" Session variable and is set to the "es-HN" string.
The field works fine if the localization is set to "en-US".
Last edited by Daniil; Sep 03, 2012 at 5:05 PM.
Reason: [CLOSED]