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
Post a Comment