I try to run the Prism application and I get a very strange error:
InvalidOperationException: ServiceLocationProvider must be set.
I use MainWindowin the main (modular host) application as an area for one main shell, which has its own areas. Thus, I can change the layout of the main window, if necessary.
I get an error when called InitializeComponent();, the only line of code in the constructor MainWindow. Google and Bing both return null results for this exact phrase.
XAML element in MainWindow:
<ContentControl regions:RegionManager.RegionName="MainShellRegion" />
Do I need to implement any interface or something on MainWindowto solve this problem? I am completely at a dead end.
Profk source
share