Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET - nothing causes a 404 ! - what could cause this?
    primarykey
    data
    text
    <p>I've just installed an old ASP.Net app on a new machine. It works except that I've noticed that no url from within the apps virtual directory will cause a 404 to be returned and I can't figure out what would cause this ?</p> <p>So just to be clear:</p> <pre><code>http://myserver.example.com/myapp/login.aspx </code></pre> <p>returns 200 as it should because login.aspx exists but</p> <pre><code>http://myserver.example.com/myapp/login-no-such-url.aspx </code></pre> <p>returns 200 as well but login-no-such-url.aspx does not exist. The IIS log shows 200 for this url and the browser receives this :</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt; &lt;HTML&gt;&lt;HEAD&gt; &lt;META http-equiv="Content-Type" content="text/html; charset=windows-1252"&gt;&lt;/HEAD&gt; &lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt; </code></pre> <ul> <li>In case it was causing it I've removed all code from the <strong>Global.asax.cs</strong> / <strong>Application_Error</strong> function.</li> <li>Other virtual directories on the same server <em>do</em> return 404's.</li> <li>'Custom Errors' in the virtdir properties points at the standard 404b.htm and that file exists and contains the standard 404 text.</li> </ul> <p>Where should I be looking to determine why IIS does not recognise non-existent URL's ?</p> <hr> <p><strong>EDIT1:</strong> The only thing I can see in the web.config belonging to the virtual directory that seems relevant to this is :</p> <pre><code>&lt;customErrors mode="Off" /&gt; </code></pre> <p>It's quite a complex web.config with a lot of application specific entries but I'm pretty sure that's the only relevant thing; however I would be interested to hear of suggestions for things in web.config that might be causing this.</p>
    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. This table or related slice is empty.
    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