I'm attempting to follow the instructions to create a reusable modal window in LightSwitch from Jan Van der Haegen's blog. However after I click to add a new Silverlight User Control to the Client, and input the xaml I'm met with errors. I reduced the code to the shortest section that gives me an error:
HRESULT E_FAIL has been returned from a call to a COM component.
From the following xaml:
<shellUtils:ScreenChildWindow
xmlns:shellUtils="clr-namespace:Microsoft.LightSwitch.Runtime.Shell.Framework;assembly=Microsoft.LightSwitch.Client">
</shellUtils:ScreenChildWindow>
I just installed Visual Studio 2012 in a virtual machine, created a new project, new Client Silverlight User Control, and tried the same code and received the same error.
I also receive it with this code and others referencing Microsoft.LightSwitch.Client:
<Framework:GroupBox
xmlns:Framework="clr-namespace:Microsoft.LightSwitch.Presentation.Framework;assembly=Microsoft.LightSwitch.Client">
</Framework:GroupBox>
Comments on the blog seem to indicate others have this error but I haven't found a solution anywhere yet. I also see the same/similar on Stackoverflow here, but unanswered.