Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

Edit

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=14.0.0.0, 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:

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

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

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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