This is a migrated thread and some comments may be shown as answers.

Bug: TwoLetterDayOfTheWeekConverter.Convert (ArgumentOutOfRangeException)

3 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sebastian Talamoni
Top achievements
Rank 1
Sebastian Talamoni asked on 22 Apr 2010, 11:09 PM
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)

3 Answers, 1 is accepted

Sort by
0
David Harris
Telerik team
answered on 22 Apr 2010, 11:21 PM
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.
0
Sebastian Talamoni
Top achievements
Rank 1
answered on 23 Apr 2010, 07:24 AM

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)






0
Ryan
Telerik team
answered on 26 Apr 2010, 07:45 PM
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.
Tags
General Discussions
Asked by
Sebastian Talamoni
Top achievements
Rank 1
Answers by
David Harris
Telerik team
Sebastian Talamoni
Top achievements
Rank 1
Ryan
Telerik team
Share this question
or