HttpContext.Current.CurrentHandler is null in Context_PreRequestHandlerExecute (IIS integrated mode)
Helo community,
I migrate my application to the IIS integrated mode. (IIS 7.5)
I'm using the IIS wildcard mapping, so every request is processing through my application.
In the classic mode I get for each unhandled request a System.Web.DefaultHttpHandler, but in integrated mode there both (HttpContext.Cur开发者_如何学Crent.CurrentHandler / HttpContext.Current.Handler) null.
Can I set a default handler for all unhandled requests?
Thanks and best regards!
This helped me out: http://blogs.msdn.com/b/tmarq/archive/2010/05/26/how-extensionless-urls-are-handled-by-asp-net-v4.aspx
精彩评论