2011-12-28 2 views
0

서버의 모든 사이트에 HttpModule을 설치하려고합니다. 이미 GAC에 있으며 각 사이트의 web.config 파일에 개별 구성을 개별적으로 추가하면 사이트에서 작업하고 있습니다. 구성을 machine.config 또는 전체 web.config으로 이동하면 모듈이 사라집니다. 여덟 곳 총과 그들 중 누구도 노력하고 있습니다 - IIS 7의 machine.config에 HttpModule을 등록하려면 어떻게합니까?

는 지금, 나는 system.webserver/httpModules의 설정과 모두 32 비트 및 64 machine.config 및 글로벌 web.config이 비트에 system.web/httpModules 부분이있다.

IIS6의 machine.config에 모듈을 설치 했으므로 쉽게 사용할 수 있습니다. IIS7에 설치하는 트릭이 있습니까?

답변

2

분명히 machine.configsystem.webServer 섹션을 정의 할 책임이 없습니다. 실제로 섹션을

<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 

으로 정의합니다. 유형은 System.Configuration.IgnoreSection입니다.

system.webServer 섹션은 섹션 system.webserver 직후

%windir%\system32\inetsrv\config\applicationhost.config 

정의된다

<location path="" overrideMode="Allow"> 
    <system.webServer> 

    <modules> 
     <!-- add the module here --> 
     <add name="MyModule" type="MyNamespace.MyModule, MyAssmebly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=abcdefhijklmnop"/> 

    </modules> 

    </system.webServer> 

</location> 
존재
관련 문제