Hi,
We have recently migrated our solution from Framework 3.5 to 4.5. After this change, we have detected that the application throws an unexpected exception. The StackTrace is the following:
Ocurrió System.ArgumentOutOfRangeException
HResult=-2146233086
Message=El valor que desea agregar está fuera del intervalo.
Nombre del parámetro: value
Source=mscorlib
ParamName=value
StackTrace:
en System.DateTime.Add(Double value, Int32 scale)
en System.TimeZoneInfo.TransitionTimeToDateTime(Int32 year, TransitionTime transitionTime)
en System.TimeZoneInfo.GetDaylightTime(Int32 year, AdjustmentRule rule)
en System.TimeZoneInfo.GetIsDaylightSavingsFromUtc(DateTime time, Int32 Year, TimeSpan utc, AdjustmentRule rule, Boolean& isAmbiguousLocalDst)
en System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc(DateTime time, Boolean& isAmbiguousLocalDst)
en System.DateTime.get_Now()
en C1.Framework.ax.b(Object A_0, MouseEventArgs A_1)
en System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
en C1.Framework.XView.OnMouseMove(MouseEventArgs e)
en System.Windows.Forms.Control.WmMouseMove(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en C1.Framework.ScrollableControl.WndProc(Message& m)
en C1.Win.C1Ribbon.C1Ribbon.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.Run(Form mainForm)
en AcquisitionUT.Program.Main() en
We use ComponentOne, and, since it appears in the stacktrace, we have checked with several versions. Unfortunately, the problem still persists. The matter is that the exception always occurs when it tries to call to DateTime.Now. We have checked out this link with related problems:
http://stackoverflow.com/questions/10323881/datetime-now-is-throwing-an-exception
Does anybody know what could be happening?
Best regards and thanks in advance.
We have recently migrated our solution from Framework 3.5 to 4.5. After this change, we have detected that the application throws an unexpected exception. The StackTrace is the following:
Ocurrió System.ArgumentOutOfRangeException
HResult=-2146233086
Message=El valor que desea agregar está fuera del intervalo.
Nombre del parámetro: value
Source=mscorlib
ParamName=value
StackTrace:
en System.DateTime.Add(Double value, Int32 scale)
en System.TimeZoneInfo.TransitionTimeToDateTime(Int32 year, TransitionTime transitionTime)
en System.TimeZoneInfo.GetDaylightTime(Int32 year, AdjustmentRule rule)
en System.TimeZoneInfo.GetIsDaylightSavingsFromUtc(DateTime time, Int32 Year, TimeSpan utc, AdjustmentRule rule, Boolean& isAmbiguousLocalDst)
en System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc(DateTime time, Boolean& isAmbiguousLocalDst)
en System.DateTime.get_Now()
en C1.Framework.ax.b(Object A_0, MouseEventArgs A_1)
en System.Windows.Forms.Control.OnMouseMove(MouseEventArgs e)
en C1.Framework.XView.OnMouseMove(MouseEventArgs e)
en System.Windows.Forms.Control.WmMouseMove(Message& m)
en System.Windows.Forms.Control.WndProc(Message& m)
en C1.Framework.ScrollableControl.WndProc(Message& m)
en C1.Win.C1Ribbon.C1Ribbon.WndProc(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
en System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
en System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
en System.Windows.Forms.Application.Run(Form mainForm)
en AcquisitionUT.Program.Main() en
We use ComponentOne, and, since it appears in the stacktrace, we have checked with several versions. Unfortunately, the problem still persists. The matter is that the exception always occurs when it tries to call to DateTime.Now. We have checked out this link with related problems:
http://stackoverflow.com/questions/10323881/datetime-now-is-throwing-an-exception
Does anybody know what could be happening?
Best regards and thanks in advance.