I wish to make a change to the web.config file. I know you can do this by using a supplemental config file. I know that the file needs to be coppied to %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\CONFIG.

Does it need to be coppied on every server? Is it possible to automate the deployment of this file in a wsp?

Once the file has been ditrubuted I need to run stsadm -o copyappbincontent on each server to recreate the web.config file. To confirm if I add a new server I will not need to do this?


I am tring to add the following to the web.config

<add name="MySPXmlContentMapProvider" siteMapFile="myxml.sitemap" type="Microsoft.SharePoint.Navigation.SPXmlContentMapProvider, Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> 

This was provided in answer Cross Site Collection Navigation

Edit 2 how-to-add-assemblies-into-gac-web-applications-bin-folder-using-wsps-created-using-visual-studio-2010 shows how you can add a dll. In visual studios I can under advance in the Manifest Tempalte I can add:

    <RootFile Location="CONFIG\webconfig.myname.xml" />

When I go to deploy the project I get:

Error occurred in deployment step 'Add Solution': Error: Cannot find this file specified in the manifest file: CONFIG\webconfig.myname.xml

1 Answer 1


In Visual Studio 2010 you can add Mapped folders which will deploy any file you want to any folder within SharePointRoot on every server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.