title: The configuration section 'system.webserver' cannot be read because it is missing a section declaration
body: <p>Web.config file code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;system.web&gt;
        &lt;system.webServer&gt;
          &lt;httpErrors errorMode="DetailedLocalOnly"&gt;
          &lt;/httpErrors&gt;
        &lt;/system.webServer&gt;
        &lt;httpCookies httpOnlyCookies="true" /&gt;
        &lt;trace enabled="true" &gt;
        &lt;/trace&gt;
        &lt;customErrors mode="RemoteOnly" /&gt;
        &lt;compilation debug="false" /&gt;
        &lt;authentication&gt;
            &lt;forms cookieless="UseCookies" requireSSL="false" protection="Validation" /&gt;
        &lt;/authentication&gt;
        &lt;sessionState cookieless="UseUri" mode="StateServer" /&gt;s
      &lt;/system.web&gt;
  &lt;/configuration&gt;
  
  </code></pre>
  
  <p>Error message when running Get-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST/' -filter "system.webServer/httpErrors" -name "errorMode" command in powershell:</p>
  
  <p>Get-WebConfigurationProperty : Filename: \?\C:\inetpub\wwwroot\web.config</p>
  
  <p>Line number: 4</p>
  
  <p>Error: The configuration section 'system.webserver' cannot be read because it is missing a section declaration</p>