以前学过IHttpModule实现,这次用到了(.net2013),注册完成后出现如下错误:
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode
其实在web.config里面加上如下配置就好了
<configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
</system.webServer>
</configuration>
怕下次找费时间,记下来