Bug: TwoLetterDayOfTheWeekConverter.Convert (ArgumentOutOfRangeException)

4 posts, 0 answers
  1. Sebastian Talamoni
    Sebastian Talamoni avatar
    32 posts
    Member since:
    Mar 2008

    Posted 22 Apr 2010 Link to this post

    When entering planning :

    Exception Type: System.ArgumentOutOfRangeException
    Exception Message: startIndex must be less than length of string.
    Parameter name: startIndex
       at System.String.Remove(Int32 startIndex)
       at Titan.Client.Presentation.Planning.ZoomedTimeBar.TwoLetterDayOfTheWeekConverter.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
       at System.Windows.Data.BindingExpression.ConvertToTarget(Object value)
       at System.Windows.Data.BindingExpression.GetValue(DependencyObject d, DependencyProperty dp)
       at System.Windows.DependencyObject.EvaluateExpression(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry)
       at System.Windows.DependencyObject.EvaluateBaseValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
       at System.Windows.DependencyObject.EvaluateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry newEntry, ValueOperation operation)
       at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
       at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
       at System.Windows.Data.BindingExpression.SendDataToTarget()
       at System.Windows.Data.BindingExpression.SourceAcquired()
       at System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e)
       at System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
       at System.Windows.FrameworkElement.OnTreeParentUpdated(DependencyObject newParent, Boolean bIsNewParentAlive)
       at System.Windows.DependencyObject.UpdateTreeParent(IManagedPeer oldParent, IManagedPeer newParent, Boolean bIsNewParentAlive, Boolean keepReferenceToParent)
       at MS.Internal.FrameworkCallbacks.ManagedPeerTreeUpdate(IntPtr oldParentElement, IntPtr parentElement, IntPtr childElement, Byte bIsParentAlive, Byte bKeepReferenceToParent)

  2. David Harris
    Admin
    David Harris avatar
    1 posts

    Posted 22 Apr 2010 Link to this post

    Hi Sebastian,

    Thank you again for the feedback, I have logged this bug internally.

    I am interested to know a couple pieces of information regarding this bug:

    1) Does it occur every time you enter planning, or did it only happen once?
    2) Does it occur on all projects, or only a specific project?
    3) If it is a specific project, do you mind describing any relevant information regarding the iterations contained in the timeline? (ie, how many, length of duration, etc).

    This information would be extremely valuable in reproducing the bug on our end.

    Regards,
    David Harris
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Sebastian Talamoni
    Sebastian Talamoni avatar
    32 posts
    Member since:
    Mar 2008

    Posted 23 Apr 2010 Link to this post


    First of all it might be important to say that I made a .bak file of the database and install it on a different machine. Since i had some data already in i didn't want to type all that again . This process worked nicely but maybe has some effect in that screen.

    1) Does it occur every time you enter planning, or did it only happen once?
    Every time.

    2) Does it occur on all projects, or only a specific project?
    All projects

    3) If it is a specific project, do you mind describing any relevant information regarding the iterations contained in the timeline? (ie, how many, length of duration, etc).

    I think it's related with the times lines : 
    http://screencast.com/t/YjUzZDZiZWE

    Furthermore I think I know the exact problem : 

    * The last day shown is 29
    * 29 + 2 = 31
    * 31/June DOES not exist and therefore the exception ( can convert 31/06/2010 --> 2 letter)






  4. Ryan
    Admin
    Ryan avatar
    164 posts

    Posted 26 Apr 2010 Link to this post

    Hello Sebastian Talamoni,

    Thanks for the screen shot. 

    The planning screen is supposed to show the days of the week (Mo, Tu, We, Th, Fr, Sa, Su) along with the date in each cell along the top. There is likely some culture setting that the code to generate these days of the week is not accounting for. This issue has been logged, and with any luck we will find a solution.

    Does the planning screen function correctly after you dismiss the error message?

    All the best,
    Ryan
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top