how to deploy web.config modifications in a Sharepoint web application?

后端 未结 6 837
孤城傲影
孤城傲影 2021-01-03 07:19

I have a website in Sharepoint 2007. We use a wsp to deploy our projects. We can deploy dlls, usercontrols, features, but i don\'t know how to include new lines in the web.c

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-03 07:50

    there is a very easy way to add safe control entries via Solution. The following snippet added to the manifest.xml will make the relevant modifications to the web.config file. To set other values you should do it in a feature receiver using the SPWebConfigModification class.

    
      
         
      
      ....
    
    

提交回复
热议问题