Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
GetAppointmentsInRange throws ArgumentOutOfRangeException
posted

Hi,

I am using the method UltraWinSchedule.AppointmentRecurrence.GetAppointmentsInRange(DateTime rangeStart,DateTime rangeEnd) to calculate instances of a recurring appointment. In the case of the option RangeLimit being set to LimitByNumberOfOccurrences, I don't know the end date of the range. Therefore I pass DateTime.MaxValue as the rangeEnd parameter.

This worked fine with version 10.2.20102.1004, but in version 10.2.20102.2151 the method throws this exception:

ExceptionType: System.ArgumentOutOfRangeException

Der addierte oder subtrahierte Wert ergibt eine nicht darstellbare DateTime.
The added or subtracted value results in an un-representable DateTime.
Parametername: value
   bei System.DateTime.AddTicks(Int64 value)
   bei Infragistics.Win.UltraWinSchedule.DateRecurrence.GenerateOccurrences(ArrayList list, DateTime rangeStartDate, DateTime rangeEndDate, RecurrenceEngineTaskType task)
   bei Infragistics.Win.UltraWinSchedule.AppointmentRecurrence.GetAppointmentsInRange(DateTime rangeStart, DateTime rangeEnd)

What are the allowed limits for rangeStart and rangeEnd?

 

Parents
No Data
Reply Children
No Data