I'm trying to create a package which needs to update the web.config. After the installation is complete I would like the web.config to be updated with an extra section in the configSections. Is there a simple way to do this or should I update the web.config file by reading the entire file and edit it in c# and the write it back to the server. I think I'm getting the hang of creating packages and I must say it works perfect!
Edit web.config
Hello,
I'm trying to create a package which needs to update the web.config. After the installation is complete I would like the web.config to be updated with an extra section in the configSections. Is there a simple way to do this or should I update the web.config file by reading the entire file and edit it in c# and the write it back to the server. I think I'm getting the hang of creating packages and I must say it works perfect!
Jeroen
Jeroen,
I've created a package action that handles that sort of web.config changes. Have a look here and here
Cheers,
Dirk
Thank you Dirk! This is just what is was looking for.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.