title: Xaml cannot create an instance of "X"
body: <p>I am trying to create a Settings page for my app in Windows Phone 7. I created the AppSettings class and is referring it from my MainPage.xaml. This is my code:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;phone:PhoneApplicationPage 
      x:Class="Shapes4Kids.MainPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
      xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:local="clr-namespace:ShapesSettings;assembly=Shapes4Kids" 
      mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
      FontFamily="{StaticResource PhoneFontFamilyNormal}"
      FontSize="{StaticResource PhoneFontSizeNormal}"
      Foreground="{StaticResource PhoneForegroundBrush}"
      SupportedOrientations="Portrait" Orientation="Portrait"
      shell:SystemTray.IsVisible="True"&gt;
      &lt;phone:PhoneApplicationPage.Resources&gt;
          &lt;local:AppSettings x:Key="appSettings"&gt;&lt;/local:AppSettings&gt;
      &lt;/phone:PhoneApplicationPage.Resources&gt;
  </code></pre>
  
  <p>But on the line where I refer the AppSettings (local:AppSettings line) , I get an error message stating that " cannot create an instance of AppSettings".</p>