开发者

Application_Error event in Global.asax not firing when browsing .php extensions

ASP.NET global.asax Application_Error fires for all pages except .php extensions.

On IIS:

  • "Web Service Extensions" does have PHP set to allowed.
  • I have the PHP isapi filter on the web site.
  • I recycled my defaultAppPool.
  • Did the IIS reset.

Still i cannot get the Application_Error to fire when viewing a php page that does not exist. When browsing to a开发者_Python百科 php file that does exist the browser displays it perfectly.

Any ideas out there?

Thanks! Lance


Uhm global.asax is only fired by the asp.net backend of iis. The PHP compiler has nothing to do with that and uses an totally different compiler etc.

In other words: not possible. And from an architectural standpoint I'm wondering why you would even want that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜