I'm trying to add a section into the web.config of a SharePoint 2010 application and I created a webconfig.myname.xml in the \14\CONFIG folder. I then ran the following command to apply the changes:
stsadm -o copyappbincontent
The content was added TO ALL web applications config files.
I don't want that, I just want it for one web application.
How can I do it? I think its possible to do it programmatically but that involves writing the XML in code and I don't really like it.
P.S. Also, a thing that's not clear is what should be myname in webconfig.myname.xml? The solution name, the application name? (I'm currently using the solution name).
SPWebConfigModificationsare the way to go. Yes that means you will need to specify yourXMLwithin your code... – moontear Nov 21 '11 at 13:16