title: The configuration section 'customErrors' cannot be read because it is missing a section declaration
body: <p>I have uploaded my webpage to a server. </p>
  
  <p>My webpage is working  fine in the local system. But when I upload it to the server it is showing the error</p>
  
  <blockquote>
    <p>The configuration section 'customErrors' cannot be read because it is
    missing a section declaration.</p>
  </blockquote>
  
  <p>I have tried all the possibility but still i am getting the above error. Can anyone suggest what should I change in my config file to resolve the issue?</p>
  
  <p>My Webconfig File:</p>
  
  <pre><code>&lt;configuration&gt;
      &lt;configSections&gt;
          &lt;section name="neatUpload" type="Brettle.Web.NeatUpload.ConfigSectionHandler, Brettle.Web.NeatUpload" allowLocation="true" /&gt;
          &lt;sectionGroup name="modulesSection"&gt;
              &lt;section name="rewriteModule" type="RewriteModule.RewriteModuleSectionHandler, RewriteModule" /&gt;
          &lt;/sectionGroup&gt;
      &lt;/configSections&gt;
      &lt;!-- &lt;customErrors mode="ON" /&gt; --&gt;
      &lt;!--  &lt;customErrors mode="Off" /&gt;  --&gt;
      &lt;customErrors mode="ON" defaultRedirect="GenericErrorPage.html"&gt;
           &lt;!--   &lt;error statusCode="403" redirect="NoAccess.htm" /&gt;
              &lt;error statusCode="404" redirect="FileNotFound.htm" /&gt; --&gt;
      &lt;/customErrors&gt;
      &lt;modulesSection&gt;
          &lt;rewriteModule&gt;
              &lt;rewriteOn&gt;true&lt;/rewriteOn&gt;
              &lt;rewriteRules&gt;
              &lt;rule source="http://[^/]*/*(\w+[&amp;amp;-]*\w+)/*((\w+[&amp;amp;-]*\w+)(\s)*)*/*((\w+[&amp;amp;-]*\w+)(\s)*)*$" destination="landPage.aspx?CampaginName=$1&amp;amp;SubDomain=$2&amp;amp;UserName=$3&amp;amp;PageName=$4" /&gt;
              &lt;!-- &lt;rule source=".*" destination="landPage.aspx?CampaginName=$1&amp;amp;UserName=$2"/&gt;--&gt;
              &lt;/rewriteRules&gt;
          &lt;/rewriteModule&gt;
      &lt;/modulesSection&gt;
  </code></pre>