HttpModule默认处理aspx页面没有问题,但是如果在IIS上配置html也通过HttpModule处理时会出现死循环无法跳出html页面的问题,在web.config上加上
<add verb="*" path= "*.htm" type= "System.Web.StaticFileHandler"/></httpHandlers>
可解决。