使用IIS7注册customHttpModule(集成模式) [英] Registering customHttpModule using IIS7 (integrated Mode)

查看:94
本文介绍了使用IIS7注册customHttpModule(集成模式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我可以通过以下方式在asp.net webform应用程序的web.config中成功注册自定义http模块:

I can successfully register a custom http module in the web.config of the asp.net webform application by doing this :

 

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="CustomModule" type="CustomHttpModulesProj.CustomModule, CustomHttpModulesProj"/>
    </modules>
  </system.webServer>

 

但是,如果我从web.config中删除上述内容尝试使用IIS 7注册此自定义HttpModule,我无法从类型下拉框中选择。即使我键入了类型,我也无法使用IIS7添加httpmodule。

However, if I remove the above from the web.config and try to register this custom HttpModule using IIS 7, I get no choices to select from under the type dropdown box. Even if I key-in the type, I am unable to add the httpmodule using IIS7.

这是我键入的类型字段

CustomHttpModulesProj.CustomModule,CustomHttpModulesProj

CustomHttpModulesProj.CustomModule, CustomHttpModulesProj

 

有没有办法单独使用IIS 7注册customHttpModule并让它更改为web .config?

Is there a way to register the customHttpModule using IIS 7 alone and having it make the change to web.config ?

 

感谢您的帮助。

 

 

 

 

推荐答案

在forums.iis.net上试用扩展性论坛。此论坛适用于.Net BCL,不包含IIS API。
Try the Extensibility forum on forums.iis.net. This forum is for .Net BCL which does not include IIS APIs.


这篇关于使用IIS7注册customHttpModule(集成模式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆