开发者

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

开发者 https://www.devze.com 2023-01-16 00:47 出处:网络
ASP.NET global.asax Application_Error fires for all pages except .php extensions. On IIS: \"Web Service Extensions\" does have PHP set to allowed.

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

精彩评论

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