开发者

IHttpModule Error event not firing for non aspx pages

I've created a module and hosting it in iis7 integrated mode.

The BeginRe开发者_运维百科quest event always get triggered for any request both aspx and html/php/whatever extension.

But the Error event only triggers for aspx extensions, but it works in cassini.

Tried: <modules runAllManagedModulesForAllRequests="true">

It's registered in system.webserver aswell as system.web.

Any ideas why this behavior happens?


Alas, you won't get any; IIS will only raise error events for managed handlers.

Just brainstorming here: If you'd like to capture an error result from PhP, you might try handling EndRequest or PostRequestHandlerExecute and inspecting the HTTP status code for a 500, that sort of thing. That's not exactly the same as handling an error event but it might work for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜