How to update web.config on each WFE in a SharePoint server farm?

前端 未结 2 383
攒了一身酷
攒了一身酷 2020-12-17 06:43

We have a SharePoint farm with multiple WFEs. A new application requires us to write some custom code to the web.config during deployment. What is the best wa

2条回答
  •  别那么骄傲
    2020-12-17 07:22

    As part of your deployment, use the SPWebConfigModification class to add/remove entries from web.config. SharePoint will manage updating the WFEs for you if you use this.

    A blog post entitled, Modify the web.config file in SharePoint using SPWebConfigModification, is a great summation of the gotchas involved and contains links to other helpful resources.

提交回复
热议问题