iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I am using webInput in my page which is running fine on "en-US" culture. but as soon as I change the culture to "ar-SA" it start throwing following error.
Specified time is not supported in this calendar. It should be between 04/30/1900 00:00:00 (Gregorian date) and 05/13/2029 23:59:59 (Gregorian date), inclusive. Parameter name: time
Following is the stack trace.
[ArgumentOutOfRangeException: Specified time is not supported in this calendar. It should be between 04/30/1900 00:00:00 (Gregorian date) and 05/13/2029 23:59:59 (Gregorian date), inclusive. Parameter name: time] System.Globalization.UmAlQuraCalendar.CheckTicksRange(Int64 ticks) +2304283 System.Globalization.UmAlQuraCalendar.GetDatePart(DateTime time, Int32 part) +55 System.Globalization.UmAlQuraCalendar.GetYear(DateTime time) +20 System.DateTimeFormat.FormatCustomized(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset) +946 System.DateTimeFormat.Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset) +67 System.DateTimeFormat.Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi) +54 ISNet.WebUI.WebControls.WebInput.get_MinimumDate() +500 [TargetInvocationException: Property accessor 'MinimumDate' on object 'ISNet.WebUI.WebControls.WebInput' threw the following exception:'Specified time is not supported in this calendar. It should be between 04/30/1900 00:00:00 (Gregorian date) and 05/13/2029 23:59:59 (Gregorian date), inclusive. Parameter name: time'] System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) +390 ISNet.Serialization.XmlSerialization.XmlSerializer.(PropertyDescriptor इ, Object Ղ) +31 ISNet.Serialization.XmlSerialization.XmlSerializer.(XmlNode ԟ, Object Ղ, Boolean ) +1923 ISNet.Serialization.XmlSerialization.XmlSerializer.(Object Ղ) +232 ISNet.Serialization.XmlSerialization.XmlSerializer.() +195 ISNet.Serialization.XmlSerialization.XmlSerializer.SerializeObject(Object objInstance) +50 ISNet.WebUI.ISNetControl.GetXMLData() +124 ISNet.WebUI.WebControls.WebInput.GetXMLData() +364 ISNet.WebUI.ISNetControl.(Object Ӷ, EventArgs ӷ) +514 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnPreRender(EventArgs e) +8684342 CogCloud.WebDesktop.DesktopPageBase.OnPreRender(EventArgs evt) in D:\MyProjects\CogCloudNew\Library\WebDesktop\DesktopPageBase.vb:230 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
To my understanding the problem is DateTime culture. According to the English calendar minimum date can be "1-1-1900" but in Arabic calendar current year is 1431. So Somehow webinput is not aware of the page culture being changed.
Can somebody please guide me in right direction
Thanks
Unfortunately, currently our DateTime WebInput only support Gregorian calendar. Since the "ar-SA" culture will use non-Gregorian calendar the WebInput will throw unsupported error message.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname