开发者

IIS6 Ignores IE7 Compatibility Mode Tag in Web.config

From;开发者_运维知识库 ASP.NET Ignores IE7 Compatibility Mode Tag in Web.config

<system.web>
    <httpProtocol>
      <customHeaders>
        <clear />
        <add name="X-UA-Compatible" value="IE=EmulateIE7" />
      </customHeaders>
    </httpProtocol>
</system.web>

Related to the answer Chris Shouts added;

When I attempt to add the <httpProtocols> sections into the <system.web> I get

Parser Error Message: Unrecognized configuration section system.web/httpProtocol.

Any tips? I ideally need to be able to add customHeaders through the IIS6 web.config (I however am assuming this won't work)

thanks


It should <system.webServer> instead of <system.web>


Do you accidentally have 2 <system.web> sections in your web.config?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜