GetFirstPartOfOccurrencesWithNoEndDates leads to ArgumentOutOfRangeException when adding 'no end date' recurring appt at DayStartTime in DayView

2 posts, 0 answers
  1. Martha
    Martha avatar
    26 posts
    Member since:
    Aug 2011

    Posted 02 Dec 2011 Link to this post

    When I try to add a recurring appt with no end date that starts at the same time my day view schedule starts, I get the following exception when saving the appt:

    An unhandled exception ('Unhandled Error in Silverlight Application
    Code: 4004   
    Category: ManagedRuntimeError      
    Message: System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
    Parameter name: value
       at System.DateTime.AddTicks(Int64 value)
       at System.DateTime.Add(Double value, Int32 scale)
       at System.DateTime.AddDays(Double value)
       at Telerik.Windows.Controls.DateTimeExtensions.SubtractInterval(DateTime dt, DateTimeInterval dateTimeInterval)
       at Telerik.Windows.Controls.ScheduleViewBase.GetFirstPartOfOccurrencesWithNoEndDates(DateSpan range, IEnumerable`1 source, Boolean moveForward, DateTimeInterval interval)
       at Telerik.Windows.Controls.ScheduleViewBase.HasAppointmentsInRange(DateSpan range, Boolean skipIntersectedWithTheRangeAppointments, Boolean moveForward, DateTimeInterval interval)
       at Telerik.Windows.Controls.ScheduleViewBase.OnQueryGoToPreviousAppointmentCanExecuted(Object sender, CanExecuteRoutedEventArgs e)
       at Telerik.Windows.Controls.CommandBinding.OnCanExecute(Object sender, CanExecuteRoutedEventArgs e)
       at Telerik.Windows.Controls.CommandManager.CanExecuteCommandBinding(Object sender, CanExecuteRoutedEventArgs e, CommandBinding commandBinding)
       at Telerik.Windows.Controls.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       at Telerik.Windows.Controls.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
       at Telerik.Windows.Controls.CommandManager.OnCanExecute(Object sender, CanExecuteRoutedEventArgs e)
       at Telerik.Windows.Controls.CanExecuteRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
       at Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
       at Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
       at Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
       at Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
       at Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
       at Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
       at Telerik.Windows.Controls.RoutedCommand.CanExecute(Object parameter, UIElement target)
       at Telerik.Windows.Controls.RadButton.CanExecuteApply()
       at Telerik.Windows.Controls.RadButton.CanExecuteChanged(Object sender, EventArgs e)
       at Telerik.Windows.Controls.WeakEventHandlerManager.CallHandler(Object sender, EventHandler eventHandler)
       at Telerik.Windows.Controls.WeakEventHandlerManager.CallWeakReferenceHandlers(Object sender, List`1 handlers)
       at Telerik.Windows.Controls.CommandManager.RaiseRequerySuggested(Object obj)
       at Telerik.Windows.Controls.CommandManager.<RaiseRequerySuggested>b__5()    
    ') occurred in iexplore.exe [5516].
  2. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 06 Dec 2011 Link to this post

    Hi Martha,

    Thank you for reporting this problem,

    We will fix it for our next release Q3 2011 SP1.

    All the best,
    Rosi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top