Specified time is not supported in this calendar error in WebInput

1 reply. Last post: March 10, 2010 1:10 AM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Agha UsmanMember

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

All times are GMT -5. The time now is 2:10 PM.
Previous Next