开发者

web.config entry doesn't work in a specific site

in my web.config file i've开发者_Python百科 added an entry:

<httpModules>

<add type="HDI.HTTPFilter" name="HTTPFilter"/>

but the server where i've placed the website on is not reading this entry

but in other servers the site works perfectly.

what the problem might be?

thanks,

yishai


Maybe your servers have different operating systems and that's why they are giving diferent results.

In IIS6 (Windows Server 2003)

<system.web>
  <httpModules>
     <add type="HDI.HTTPFilter" name="HTTPFilter"/>
  </httpModules>
</system.web>

In II7 (Windows Server 2008) you will need to put your module inside <system.webServer>

<system.webServer>
    <modules>
      <add type="HDI.HTTPFilter" name="HTTPFilter"/>
    </modules>
</system.webServer>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜