Hi Jerry,
It seems the exception is thrown on this line:
SetPropertyValue("CultureDateFMT", FMT[0].Substring(0, 1).ToUpper(BrCult) + FMT[1].Substring(0, 1).ToUpper(BrCult) + FMT[2].Substring(0,1).ToUpper(BrCult));
May be it's related to that the region setting's difference between the development box and the server.
Another tip is that the source code of control toolkit is available, you can debug it on the server with the help ofremote debugging.
Hope this helps.
Hi Raymond,
Thanks for your reply. I have managed to fix this error by changing the line before the one that throws the exception in AjaxControlToolkit/MaskedEdit/MaskedEditExtender.cs.
string[] FMT = BrCult.DateTimeFormat.ShortDatePattern.Split(BrCult.DateTimeFormat.DateSeparator.ToCharArray());
to
string[] FMT = BrCult.DateTimeFormat.ShortDatePattern.Split(BrCult.DateTimeFormat.DateSeparator.ToCharArray(),StringSplitOptions.RemoveEmptyEntries);
It seems that there is a problem with some region settings as you've mentioned.
Jerry
No comments:
Post a Comment