【问题标题】:HttpContext.Current.CurrentHandler is null in Context_PreRequestHandlerExecute (IIS integrated mode)HttpContext.Current.CurrentHandler 在 Context_PreRequestHandlerExecute 中为空(IIS 集成模式)
【发布时间】:2010-09-29 07:59:00
【问题描述】:

Helo 社区,

我将我的应用程序迁移到 IIS 集成模式。 (IIS 7.5)

我正在使用 IIS 通配符映射,因此每个请求都通过我的应用程序进行处理。

在经典模式下,我为每个未处理的请求获得一个 System.Web.DefaultHttpHandler,但在集成模式下,(HttpContext.Current.CurrentHandler / HttpContext.Current.Handler) 都为空。

我可以为所有未处理的请求设置默认处理程序吗?

谢谢和最好的问候!

【问题讨论】:

    标签: iis-7 httphandler integrated-pipeline-mode wildcard-mapping


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多