ASP.net web.config doesn't catch all 404's -


in web.config have:

    <customerrors mode="on" defaultredirect="~/error.aspx" redirectmode="responserewrite">         <error statuscode="500" redirect="~/error.aspx" />         <error statuscode="404" redirect="~/404.aspx" />     </customerrors> 

yet these url's, 2nd 1 file extension defined works, other 1 returns blue screen 404 "server error in application".

http://127.0.0.1/scirranew/invalidpath  http://127.0.0.1/scirranew/invalidpath.aspx 

any ideas? i'm on asp.net 4, iis 7.5.

if want work, need configure iis pass requests .net engine. first example not asking .net page, not routed .net engine.

what version of iis , .net using? this may help.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -