c# - Convert.ToDateTime causes FormatException on afternoon date/time values -


We have a format that returns the date / time value in the following format:

  2009-10-10 09: 19: 12.124 2009-10-10 12:13:13 14.852 2009-10-10 13:00:00 2009-10-10 15:23 23: 32.022  

A special server failed to parse all suddenly (today) at 13:00 or later. This special customer has five servers and there is only one problem. We have dozens more customers with hundreds of servers without the problem. System.FormatException: The string was not valid as valid date time on System.DateTimeParse.Parse (String s, DateTimeFormatInfo dtfi, DateTimeStyles style) on System.DateTime.Parse (string S , IFormatProvider provider) on the system. Convert ToDateTime (string value, IFormatProvider provider) on System.String.System.Conconvertible on system. Determined Time (IFormatProvider Provider) Convert Tudentime (object value)

I played a test using date time. Purse (S., Culture Info. Contentculture) works with Datetime. Pars (S, CultureInfo.InvariantCulture) and the problem only appears with CurrentCulture, however, CurrentCulture "is like" N-US "like all other servers and there is nothing different in it that I can find in regional or language settings.

Did anyone have seen this before? Can I see suggestions related to?

Edit: Thanks for the reply yet, though I seek suggestions on this I am doing that to pay attention to this The reason for this configuration can be that it can suddenly change behavior and has been working for many years and working on other servers. I have already changed it for the next version, but I present it I'm looking for a configuration change to fix in the interim for installation.

The problem was also encountered. Just reprove your application pool Tti.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -