fernandreu / office-ribbonx-editor

An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
MIT License
513 stars 97 forks source link

InvalidOperationException: ServiceLocationProvider must be set. #230

Open mdwilems opened 6 months ago

mdwilems commented 6 months ago

Describe the bug


System.InvalidOperationException:  ServiceLocationProvider must be set.
   at CommonServiceLocator.ServiceLocator.get_Current()
   at OfficeRibbonXEditor.ViewModels.Documents.IconViewModel.CommitIdChange() in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\ViewModels\Documents\IconViewModel.cs:line 96
   at OfficeRibbonXEditor.Views.Windows.MainWindow.OnChangeIdTextDown(Object sender, KeyEventArgs e) in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\Views\Windows\MainWindow.xaml.cs:line 160
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG