title: 500.19 error in IIS7 when an error occurs
body: <p>Setup: Windows 7, IIS7.  I am working on an app that is being viewed through the local IIS server, not the built in debugging web server.  So my app url is <code>http://localhost/foo/bar.aspx</code>.  There is <em>no</em> <code>&lt;customErrors&gt;</code> section in my web.config, and I haven't changed any settings in IIS.</p>
  
  <p>If any error occurs, I always get the following error screen:</p>
  
  <blockquote>
    <p><strong>HTTP Error 500.19 - Internal Server Error</strong><br>
    Absolute physical path "<code>C:\inetpub\custerr</code>" is not allowed in <code>system.webServer/httpErrors</code> section in web.config file. Use relative path instead.</p>
  </blockquote>
  
  <p>Here's my <code>applicationhost.config</code> contents:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;httpErrors errorMode="Custom" lockAttributes="allowAbsolutePathsWhenDelegated,defaultPath"&gt;
    &lt;error statusCode="401" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="401.htm" /&gt;
    &lt;error statusCode="403" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="403.htm" /&gt;
    &lt;error statusCode="404" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="404.htm" /&gt;
    &lt;error statusCode="405" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="405.htm" /&gt;
    &lt;error statusCode="406" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="406.htm" /&gt;
    &lt;error statusCode="412" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="412.htm" /&gt;
    &lt;error statusCode="500" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="500.htm" /&gt;
    &lt;error statusCode="501" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="501.htm" /&gt;
    &lt;error statusCode="502" prefixLanguageFilePath="%SystemDrive%\inetpub\custerr" path="502.htm" /&gt;
  &lt;/httpErrors&gt;
  </code></pre>
  
  <p>How can I get rid of this configuration error so I can see detailed errors?</p>