title: customize HTTP Error 403.14 - Forbidden error view
body: <p>i have a web site in mvc3 razor on .net4 in my site if you enter an directory to browse it in explorer it give you this error :</p>
  
  <pre><code>Error Summary
  HTTP Error 403.14 - Forbidden
  The Web server is configured to not list the contents of this directory.
  </code></pre>
  
  <p>how can i handle it until when user enter directory see my custom error page not iis error page i google it but can not found any solution for my case i have this lines in by web.config</p>
  
  <pre><code>&lt;validation validateIntegratedModeConfiguration="false" /&gt;
  &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code> &lt;customErrors  defaultRedirect="/CustomErrors/FileNotFound.htm" mode="RemoteOnly"&gt;
    &lt;error  statusCode="404" redirect="/CustomErrors/FileNotFound.htm" /&gt;
    &lt;error statusCode="500" redirect="/CustomErrors/FileNotFound.htm"  /&gt;
  &lt;/customErrors&gt;
  </code></pre>
  
  <p>but not works</p>
  
  <p>thanks all</p>