SCSM 2016 Console Crash
See the inner exception for more information. ---> System.Exception: Information for developers (use Text Visualizer to read this):
This exception was thrown because the generator for control 'Microsoft.EnterpriseManagement.UI.Controls.Internal.InnerList Items.Count:3' with name '(unnamed)' has received sequence of CollectionChanged events that do not agree with the current state of the Items collection. The following differences were detected:
Accumulated count 2 is different from actual count 3. [Accumulated count is (Count at last Reset + #Adds - #Removes since last Reset).]
One or more of the following sources may have raised the wrong events:
System.Windows.Controls.ItemContainerGenerator
System.Windows.Controls.ItemCollection
Microsoft.EnterpriseManagement.UI.ViewFramework.VirtualCollectionView
Microsoft.EnterpriseManagement.UI.ViewFramework.VirtualCollection
(The starred sources are considered more likely to be the cause of the problem.)
The most common causes are (a) changing the collection or its Count without raising a corresponding event, and (b) raising an event with an incorrect index or item parameter.
The exception's stack trace describes how the inconsistencies were detected, not how they occurred. To get a more timely exception, set the attached property 'PresentationTraceSources.TraceLevel' on the generator to value 'High' and rerun the scenario. One way to do this is to run a command similar to the following:
System.Diagnostics.PresentationTraceSources.SetTraceLevel(myItemsControl.ItemContainerGenerator, System.Diagnostics.PresentationTraceLevel.High)
from the Immediate window. This causes the detection logic to run after every CollectionChanged event, so it will slow down the application.
Best Answer
-
Tony_Collett Cireson Support Super IT Monkey ✭✭✭✭✭What I usually do when I encounter something like this is to remove the management pack and then recreate it and the content that was in it. Sometimes it's just the MP file that gets corrupted and while everything appears to be fine on the surface, deeper down it has some sort of flaw.
Is that something you're able to try in this case?5
Answers
Is that something you're able to try in this case?