关于 HttpModule配置问题
2014-09-01 16:58 JerremyZhang 阅读(451) 评论(0) 收藏 举报在经典模式下,配置到System.web节点
在IIS7以上的集成模式下,要配置到<system.webServer>节点
否则会出现类似一下的错误:

具体配置如下:
1 <configuration> 2 <system.webServer> <!-- IIS7.0集成模式下 --> 3 <modules> 4 <add name="AccessLogModule" type="Brightway.PAES.Core.Modules.AccessLogModule,Brightway.PAES.Core"/> 5 </modules> 6 </system.webServer> 7 <system.web> <!-- IIS7.0经典模式或者IIS之前版本 --> 8 <httpModules> 9 <add name="AccessLogModule" type="Brightway.PAES.Core.Modules.AccessLogModule,Brightway.PAES.Core"/> 10 </httpModules> 11 </system.web> 12 </configuration>
浙公网安备 33010602011771号