This project has moved and is read-only. For the latest updates, please go here.
2
Vote

Siverlight 5 Version, Invalid dates

description

I've been having this issue since i've upgraded to SL5, I have a Clinet-Server Silverlight Business App, an this error occurs on some clients systems when selecting a date from the control:
 
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
 
PS: i suspect that the Regional/Date Time Setting on the client or involved because it happens on some clients not all of them

comments

VahidN wrote Jun 16, 2012 at 7:25 AM

Hello,
Please add the following setting to the web.config file and let me know the result:
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" culture="fa-IR" uiCulture="fa-IR"/>

VahidN wrote Jun 16, 2012 at 8:02 AM

Also you need to override the default ui-culture of the clients as well:
<UserControl Language="fa-IR" />

gammasaman wrote Jun 17, 2012 at 11:32 AM

Hi, Thank you for your quick response
Adding the code in web.config and application_startup was enough and it solved the problem.

wrote Sep 17, 2012 at 1:17 PM

wrote Feb 13, 2013 at 9:16 PM