Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From this comment to Mr. Disappointment:</p> <p><em>Thanks, I'm using IIS 7 local and IIS 7.5 on live. Let me know when you find the material.</em></p> <p>If your application is running in an application pool configured to run in Classic Pipeline mode then content not intended for ASP.NET won't hit the ASP.NET runtime. i.e. folders that don't exist. These will be handled directly by IIS.</p> <p>You have a couple choices:</p> <ol> <li><p>Set the application pool to Integrated Pipeline mode. You may also need to configure the following setting if IIS's error handling "eats" your ASP.NET 404 and 500 status code from ASP.NET:</p> <pre><code>&lt;configuration&gt; &lt;system.webServer&gt; &lt;httpErrors existingResponse="PassThrough" /&gt; &lt;/system.webServer&gt; &lt;/configuration&gt; </code></pre></li> <li><p>If the application is not well behaved in "Integrated Pipeline" mode but you're just concerned about getting a page displayed for a 404 response then configure the following:</p> <pre><code>&lt;system.webServer&gt; &lt;httpErrors&gt; &lt;remove statusCode="404" subStatusCode="-1" /&gt; &lt;error statusCode="404" prefixLanguageFilePath="" path="/404.aspx" responseMode="ExecuteURL" /&gt; &lt;/httpErrors&gt; &lt;/system.webServer&gt; </code></pre> <p>You'd need to set the <code>404</code> status code in the page, otherwise it'll just return a <code>200</code>.</p> <p>If you use a static page, for example:</p> <pre><code>&lt;error statusCode="404" prefixLanguageFilePath="" path="404.html" responseMode="File" /&gt; </code></pre> <p>This will return a <code>404</code>.</p></li> <li><p>If the application is not well behaved in "Integrated Pipeline" mode AND you absolutely must pass 404 errors through your error handler then you may have to manually map wildcard content to the ASP.NET HttpHandler so that such requests do hit the pipeline. This would be a sub-optimal solution.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload