Objawy
Rozważ następujący scenariusz:
-
Masz usług danych Master (MDS) dla programu Microsoft SQL Server 2012 lub SQL Server 2014 zainstalowany.
-
Utwórz obiekt, który ma 100 członków i została zaznaczona opcja "Automatycznie utwórz wartości kodu".
-
W Eksploratorze MDS jednostka ma dwie strony członków z liczbą członków na stronie 2 równa rozmiar strony siatki (wartość domyślna to 50).
Scenariusz 1:
Kliknij przycisk Dodaj element członkowski na stronie 1, wprowadź wymagane dane, aby dodać nowy element członkowski, a następnie kliknij przycisk Następna strona . Strona 3 jest tworzony i wyświetlany następujące błędy:
System.ArgumentOutOfRangeException: [ArgumentOutOfRange_Index]
Argumenty:
Debugowania ciągów zasobów są niedostępne. Często ten klucz i argumenty zapewnić wystarczające informacje, aby zdiagnozować problem. Zobacz http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.20913.00&File=mscorlib.dll&Key=ArgumentOutOfRange_Index
Nazwa parametru: indeks
w System.ThrowHelper.ThrowArgumentOutOfRangeException()
w System.Collections.Generic.List'1.get_Item (Int32 indeks)
w System.Collections.ObjectModel.Collection'1.get_Item (Int32 indeks)
w Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.GetEnumerator()
w System.Windows.Controls.DataForm.get_ItemsCount()
w System.Windows.Controls.DataForm.SetCanMoveToLastItem()
w System.Windows.Controls.DataForm.SetAllCanProperties()
w System.Windows.Controls.DataForm.SetIsItemValid()
w System.Windows.Controls.DataForm.GenerateUI (wartość logiczna clearEntityErrors, Boolean swapOldAndNew)
w System.Windows.Controls.DataForm.OnCurrentItemPropertyChanged (DependencyObject d i e DependencyPropertyChangedEventArgs)
w System.Windows.DependencyObject.RaisePropertyChangeNotifications (DependencyProperty dp, oldValue obiektu, obiekt newValue)
w System.Windows.DependencyObject.UpdateEffectiveValue (właściwości DependencyProperty, EffectiveValueEntry, oldEntry, EffectiveValueEntry & newEntry operacji ValueOperation)
w System.Windows.DependencyObject.SetValueInternal (DependencyProperty dp, wartość obiektu, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
w System.Windows.Controls.DataForm.UpdateCurrentItem()
o System.Windows.Controls.DataForm. < SetUpCollectionView > b__8 (DataForm przykład, obiekt źródłowy, EventArgs eventArgs)
w System.Windows.Controls.WeakEventListener'3.OnEvent (źródło TSource, TEventArgs eventArgs)
w System.EventHandler.Invoke (obiekt nadawcy, EventArgs e)
w Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.OnCurrentChanged()
w Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveCurrentToPosition (Int32 pozycji)
w Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveCurrentTo (element Object)
w Microsoft.MasterDataServices.Client.ViewModel.MasterData.EntityMembersViewModel.set_SelectedItem (wartość Członkowskich)
w Microsoft.MasterDataServices.Client.ViewModel.Common.ItemsBase'2.ReloadItems()
w Microsoft.MasterDataServices.Client.ViewModel.MasterData.EntityMembersViewModel.EntityMembers_RefreshNeeded (obiekt nadawcy, EventArgs e)
o Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.Refresh()
w Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveToPage (Int32 pageIndex)
o Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.MoveToNextPage()
w System.Windows.Controls.DataPager.PageMoveHandler (Int32 oldPageIndex, Int32 newPageIndex, PageMoveOperationDelegate pageMoveOperation)
w System.Windows.Controls.DataPager.OnNextPageButtonBaseClick (obiekt nadawcy, RoutedEventArgs e)
o System.Windows.Controls.Primitives.ButtonBase.OnClick()
o System.Windows.Controls.Button.OnClick()
w System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp (MouseButtonEventArgs e)
w System.Windows.Controls.Control.OnMouseLeftButtonUp (Control ctrl, EventArgs e)
przy MS. Internal.JoltHelper.FireEvent (IntPtr unmanagedObj IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, ciąg eventName, flagi UInt32)
Scenariusz 2:
Kliknij przycisk Dodaj element członkowski na stronie 2, aby wymusić Explorer, aby dodać nową stronę. Tworzona jest strona 3 i zostanie wyświetlony następujące błędy:
System.ArgumentOutOfRangeException: [ArgumentOutOfRange_Index]
Argumenty:
Debugowania ciągów zasobów są niedostępne. Często ten klucz i argumenty zapewnić wystarczające informacje, aby zdiagnozować problem. Zobacz http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.20913.00&File=mscorlib.dll&Key=ArgumentOutOfRange_Index
Nazwa parametru: indeks
w System.ThrowHelper.ThrowArgumentOutOfRangeException()
w System.Collections.Generic.List'1.get_Item (Int32 indeks)
w System.Collections.ObjectModel.Collection'1.get_Item (Int32 indeks)
w Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.GetEnumerator()
w System.Windows.Controls.DataForm.get_ItemsCount()
w System.Windows.Controls.DataForm.SetCanMoveToLastItem()
w System.Windows.Controls.DataForm.SetAllCanProperties()
o System.Windows.Controls.DataForm. < SetUpCollectionView > b__8 (DataForm przykład, obiekt źródłowy, NotifyCollectionChangedEventArgs eventArgs)
w System.Windows.Controls.WeakEventListener'3.OnEvent (źródło TSource, TEventArgs eventArgs)
w system.EventHandler.Invoke (obiekt nadawcy, NotifyCollectionChangedEventArgs e)
w Microsoft.MasterDataServices.Client.ViewModel.Common.SortablePagedCollectionView'1.CollectionChangedHandler (obiekt nadawcy, NotifyCollectionChangedEventArgs e)
w system.EventHandler.Invoke (obiekt nadawcy, NotifyCollectionChangedEventArgs e)
w System.Collections.ObjectModel.ObservableCollection'1.OnCollectionChanged (NotifyCollectionChangedEventArgs e)
w System.Collections.ObjectModel.ObservableCollection'1.InsertItem (Int32 indeksu, element T)
w System.Collections.ObjectModel.Collection'1.Insert (Int32 indeksu, element T)
w Microsoft.MasterDataServices.Client.ViewModel.MasterData.EntityMembersViewModel.AddNewMemberToCollection (Guid IdentyfikatorŻądania, odpowiedź EntityMembersGetResponse, wyjątek ex)
o c__DisplayClass16 <> Microsoft.MasterDataServices.Client.ViewModel.ServiceProxy.ServiceClient.'2. < ExecuteRequest > b__15 (obiekt nadawcy, e RequestCompletedEventArgs "1")
w Microsoft.MasterDataServices.Client.ViewModel.ServiceProxy.ServiceClient.OnEntityMembersGetCompleted (stan obiektu)
Rozwiązanie
Ten problem został po raz pierwszy rozwiązany w następujących aktualizacji zbiorczej programu SQL Server.
Zbiorcza aktualizacja 1 dla programu SQL Server 2014/en-us/help/2931693
Zbiorcza aktualizacja 9 dla dodatku SP1 dla programu SQL Server 2012/en-us/help/2931078
Każda nowa aktualizacja zbiorcza dla programu SQL Server zawiera wszystkie poprawki i wszystkie poprawki zabezpieczeń, które zostały zawarte w poprzedniej zbiorczej aktualizacji. Sprawdź najnowsze aktualizacje zbiorcze dla programu SQL Server:
-
Najnowszą aktualizację zbiorczą dla programu SQL Server 2014
-
Najnowszą aktualizację zbiorczą dla programu SQL Server 2012 z dodatkiem SP1
Więcej informacji
Po zakończeniu instalacji należy otworzyć Menedżer konfiguracji usług danych Master , tak aby można uaktualnić bazy danych MDS.
-
Kliknij baz danych, a następnie kliknij przycisk Wybierz bazę danych.
-
Połączenia z bazą danych, który chcesz uaktualnić. Po wybraniu bazy danych, pojawi się następujący komunikat: Ta baza danych wymaga uaktualnienia. Nie można zmienić ustawień systemowych, do czasu uaktualnienia bazy danych.
-
Kliknij przycisk Uaktualnij bazy danych. Zostanie otwarty Kreator uaktualniania bazy danych . Postępuj zgodnie z instrukcjami kreatora, aby uaktualnić bazę danych, a następnie kliknij przycisk Zakończ.
Stan
Firma Microsoft potwierdziła, że jest to problem występujący w produktach firmy Microsoft wymienionych w sekcji „Dotyczy”.