Hi I received that exception and seeing the stack trace I don't understand what could be the source of that issue.
Regards,
Dominik
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at Infragistics.Windows.DataPresenter.AutoSizeFieldHelper.FieldList.Contains(Field field) at Infragistics.Windows.DataPresenter.AutoSizeFieldHelper.FieldList.Remove(Field field) at Infragistics.Windows.DataPresenter.AutoSizeFieldHelper.RecordFieldList.Remove(Record record, Field field) at Infragistics.Windows.DataPresenter.AutoSizeFieldLayoutInfo.OnFilterCellChanged(FilterCell cell) at Infragistics.Windows.DataPresenter.FilterCell.NotifyAutoSizeInfo() at Infragistics.Windows.DataPresenter.FilterCell.OnFieldFilterInfo_PropertyChanged(Object sender, PropertyChangedEventArgs e) at Infragistics.PropertyChangeNotifier.OnPropertyChanged(String propertyName) at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.FieldFilterInfo.VerifyRecordFilter() at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.FieldFilterInfo.VerifyHasActiveFilters() at Infragistics.Windows.DataPresenter.FilterCell.VerifyHasActiveFilters() at Infragistics.Windows.DataPresenter.FilterRecord.VerifyActiveFilters() at Infragistics.Windows.Internal.PropertyValueTracker.InvokeHandler() at Infragistics.Windows.Internal.PropertyValueTracker.ProcessTargetChanged() at Infragistics.Windows.Internal.PropertyValueTracker.OnTargetChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp) at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange) at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange) at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange) at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange) at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange) at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange) at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange) at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args) at System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args) at System.Windows.Data.BindingExpression.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args) at System.Windows.DependentList.InvalidateDependents(DependencyObject source, DependencyPropertyChangedEventArgs sourceArgs) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value) at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.BumpVersion() at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.OnSourceFiltersChanged() at Infragistics.Windows.Internal.PropertyValueTracker.InvokeHandler() at Infragistics.Windows.Internal.PropertyValueTracker.ProcessTargetChanged() at Infragistics.Windows.Internal.PropertyValueTracker.OnTargetChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e) at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp) at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange) at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange) at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange) at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange) at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange) at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName) at MS.Internal.Data.PropertyPathWorker.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e) at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list) at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args) at System.Collections.ObjectModel.ObservableCollection`1.OnPropertyChanged(PropertyChangedEventArgs e) at Infragistics.Windows.DataPresenter.RecordFilterCollection.BumpVersion() at Infragistics.Windows.DataPresenter.RecordFilterCollection.ResumeVersionNotifications(Boolean raiseNotification) at Infragistics.Windows.DataPresenter.RecordFilterCollection.VerifyFields() at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.VerifyRecordFilterFieldsHelper() at Infragistics.Windows.DataPresenter.ResolvedRecordFilterCollection.MeetsCriteria(DataRecord record, RecordFilter ignoreFilter, Boolean populatingFilterDropDown) at Infragistics.Windows.DataPresenter.DataRecord.ApplyFiltersHelper(ResolvedRecordFilterCollection filters, Boolean raiseNotifications) at Infragistics.Windows.DataPresenter.ViewableRecordCollection.EnsureFiltersEvaluated() at Infragistics.Windows.DataPresenter.ViewableRecordCollection.Verify() at Infragistics.Windows.DataPresenter.ViewableRecordCollection.get_ScrollCount() at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.get_Count() at System.Windows.Data.ListCollectionView.get_InternalCount() at System.Windows.Data.ListCollectionView.get_IsEmpty() at System.Windows.Data.ListCollectionView.RefreshOverride() at System.Windows.Data.CollectionView.RefreshOrDefer() at System.Windows.Data.ListCollectionView.ProcessCollectionChanged(NotifyCollectionChangedEventArgs args) at System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args) at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.RaiseCollectionChangedHelper(NotifyCollectionChangedEventArgs eventArgs) at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.RaiseChangeEvent(EventArgs e, Boolean async) at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.RaisePendingNotifications() at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.RaisePendingNotificationsCallback() --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Hello Dominik,
Thank you for your post. I have been looking into it and since this is not a known issue, I cannot be completely sure what can cause this exception, so could you please send an isolated sample project, where this is reproduced, so I can investigate it further for you.
Looking forward for your reply.
Hi Stefan,
Sorry, I extracted that issue from a log file. I was unable to determine the source of the issue since the stacktrace doesn't show any code executed in my project. It seems that the call was made directly from the UI thread to the datagrid. I was hoping that from the stack trace you could dig up the source of the index and the collection to figure out what could happen in the XamDataGrid that could explain that exception.
Anyway, thanks for you're help.
Hi,
The stack trace is same as mentioned above by Dominik in past.
I'll give a try using V12 or V13 of Infragistics NetAdvantage WPF. and will get back to you..if some issues still persists.
Ravi.
No win yet. Same error.
17/02/2014 14:07:03 System.IndexOutOfRangeException: Index was outside the bounds of the array. at Infragistics.Collections.SparseArray.ValidateIndex(Int32 index) at Infragistics.Collections.SparseArray.GetItem(Int32 index, ICreateItemCallback createItemCallback) at Infragistics.Collections.SparseArray.get_Item(Int32 index) at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.get_Item(Int32 index) at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.EnsureItemsAllocated(Int32 startIndex, Int32 count) at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.EnsureItemsAllocated(GenerationCache generatorCache) at Infragistics.Windows.DataPresenter.FlatScrollRecordsCollection.BeginMeasure(GenerationCache generatorCache) at Infragistics.Windows.DataPresenter.GridViewPanelFlat.GenerationCache..ctor(GridViewPanelFlat panel, Boolean isVertical, Size constraint, Int32 overall at Infragistics.Windows.DataPresenter.GridViewPanelFlat.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
I tried after installing Infragistics NetAdvantage 12.2.
Ravi Harsha.
version of Infragistics used is : 12.2.20122.1000
Is the fix done in Passed 2013.
"
Hello Anindya,
The service releases, where the issue is fixed are WPF_13.1.20131.2108 and WPF_12.2.20122.2202."
is this included in 13.2 version release of Infragistics.
Waiting for your reply.
Hello Ravi,
Yes it is included in version 13.2
Hello again,
I can suggest you read this article from MSDN:
http://msdn.microsoft.com/en-us/library/aa970069(v=vs.110).aspx
where it is explained how to use the pack URLs in WPF, because the error you have is due to wrong URL.
Hope this helps you.
Iam getting an error:
'Set property 'System.Windows.ResourceDictionary.Source' threw an exception.'
in below
<UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/InfragisticsWPF4.OutlookBar.v13.2;component/ResourceSets/OutlookBar/OutlookBarOffice2010Blue.xaml"/>
while setting up the source.
Any info on this.