I want to edit a web.config to add some sections programatically.
For example and <configSections>
. How can I go about achieving this in C#? My application is ASP.Net website.
I know that I can do WebConfigurationManager.GetSection("system.identityModel")
to get an instance of the identity section, but cant see any way of actually editing/adding it?