title: Custom Configuration Sections
body: <p>I am currently trying to implement a Custom Configuration Section in a project I am busy with and no matter what I try I keep getting the error below:</p>
  <p>{&quot;An error occurred creating the configuration section handler for pageAppearanceGroup/pageAppearance: Could not load type 'Samples.AspNet.PageAppearanceSection' from assembly 'System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. (E:\Three Nine Developments\lastfm\msdn\msdn\bin\Debug\Samples.Aspnet.vshost.exe.config line 6)&quot;}</p>
  <p>I have copied the code from this MSDN Artricle:</p>
  <p><a href="http://msdn.microsoft.com/en-us/library/2tw134k3.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/2tw134k3.aspx</a></p>
  <p>I still get the same error.</p>
  <p>I have tried the all the advice/guide in the following articles but to no avail.<br />
  <a href="http://www.evanclosson.com/devlog/bettercustomerrorsinaspnetcustomconfigurationsection" rel="nofollow noreferrer">http://www.evanclosson.com/devlog/bettercustomerrorsinaspnetcustomconfigurationsection</a></p>
  <p><a href="https://web.archive.org/web/20200810043157/http://geekswithblogs.net:80/akraus1/articles/64871.aspx" rel="nofollow noreferrer">Link</a></p>
  <p>This must be something stupid that I am missing.
  I am running Vista, could that be a problem? some obscure security setting?</p>
  <pre><code>    &lt;configuration&gt;
    &lt;!-- Configuration section-handler declaration area. --&gt;
    &lt;configSections&gt;
      &lt;sectionGroup name=&quot;pageAppearanceGroup&quot;&gt;
        &lt;section
          name=&quot;pageAppearance&quot;
          type=&quot;Samples.AspNet.PageAppearanceSection&quot;
          allowLocation=&quot;true&quot;
          allowDefinition=&quot;Everywhere&quot;
        /&gt;
      &lt;/sectionGroup&gt;
      &lt;!-- Other &lt;section&gt; and &lt;sectionGroup&gt; elements. --&gt;
    &lt;/configSections&gt;
  
    &lt;!-- Configuration section settings area. --&gt;
    &lt;pageAppearanceGroup&gt;
      &lt;pageAppearance remoteOnly=&quot;true&quot;&gt;
        &lt;font name=&quot;TimesNewRoman&quot; size=&quot;18&quot;/&gt;
        &lt;color background=&quot;000000&quot; foreground=&quot;FFFFFF&quot;/&gt;
      &lt;/pageAppearance&gt;
    &lt;/pageAppearanceGroup&gt;
  
  
  
  &lt;/configuration&gt;
  </code></pre>