Elmah and 404s under IIS6

ぃ、小莉子 提交于 2019-12-11 04:54:58

问题


Just wondering if it's possible to get Elmah to log 404s that aren't picked up by the ASP.NET framework - i.e. the 404s that IIS spots and replies to.

Presumably this would involve some kind of entry in IIS -> web site properties -> Custom Errors tab.

Can't find any reference on how to do this.


回答1:


Non-ASP.NET mapped extensions (e.g. static content, classic ASP, etc) will never hit the ASP.NET request pipeline so ELMAH will never know about 404 Not Found's generated by IIS6. You'd need to create a wild card extension mapping to aspnet_isapi.dll for this to be possible (or just specific extensions).



来源:https://stackoverflow.com/questions/2698562/elmah-and-404s-under-iis6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!