web.config 配置兼容 IIS7 II6

时间:2022-05-08 01:20:01

其实很简单在IIS6下面能正常运行的Web.config里添加:
<system.webServer>
  <validation validateIntegratedModeConfiguration="false"/>
  <modules>
      <add name="..." type="..."/>
  </modules>
  <handlers accessPolicy="Read, Write, Script, Execute">
      <add path="..." name="..." type="..." verb="..." />
  </handlers>
 </system.webServer>