Settings from system.webserver sometimes removed from web.config file

让人想犯罪 __ 提交于 2019-12-06 18:50:25

We ended up moving the configuration out of the root system.webserver and into the one inside the location tag. Then we also added it to all the child applications.

<location path="." inheritInChildApplications="false">
    <system.webServer>
      <validation validateIntegratedModeConfiguration="false" />
      <modules>
        ...
      </modules>
      <handlers accessPolicy="Read, Script">
        ...
      </handlers>
    </system.webServer>
 </location>

Though it's not an ideal workaround, it has solved the problem with the configuration being removed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!