I am trying to get a Prism application to start up, and am getting a very strange error:
InvalidOperationException: ServiceLocationProvider must be set.
I am using MainWindow
in the main (module host) application as the region for a single main shell, that has it's own regions. That way I can swap out main window layouts if needed.
I get the error on the InitializeComponent();
call, the only line of code in the constructor of MainWindow
. Google and Bing both return zero results for that exact phrase.
The XAML element in MainWindow
is:
<ContentControl regions:RegionManager.RegionName="MainShellRegion" />
Do I have to implement some interface or something on MainWindow
to solve this? I am completely stumped.