开发者

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

开发者 https://www.devze.com 2023-01-14 18:06 出处:网络
in my web.config file i\'ve开发者_Python百科 added an entry: <httpModules> <add type=\"HDI.HTTPFilter\" name=\"HTTPFilter\"/>

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

精彩评论

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

关注公众号