Unable to run default XAML in Blend or VS2005
The following code is generated:
<Window x:Class="WindowsApplication8.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WindowsApplication8" Height="300" Width="300"
>
<Grid>
</Grid>
</Window>
When I try to compile and run the app, I get the following error:
Cannot create instance of 'Window1' defined in assembly 'WindowsApplication8, Version=1.0.2613.23423, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'Window1.xaml' Line 1 Position 9.
Scenario B:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xml:lang="en-US"
x:Class="UntitledProject6.Window1"
x:Name="Window"
Title="Window1"
Width="640" Height="480">
<Grid x:Name="LayoutRoot"/>
</Window>
I hit F5 to build and run the app, and the following error is generated:
Cannot create instance of 'Window1' defined in assembly 'UntitledProject6, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'Window1.xaml' Line 2 Position 2.
What complicates things even further (for me, at least) is that all of the sample projects which comes with Expression Blend (Beta 2) build and run without problem.
Additionally, these XAML-blocks both work in XamlPad...Stripping the class-declaration and pasting the markup into XamlPad will successfully create windows.

