SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have sharepoint project which has own customized web.config file. In package I have customized config, but I need to apply those changes to second sharepoint server where are sources deployed. Have anyone idea how to perform it?

Many Thanks...

share|improve this question

migrated from May 16 '12 at 19:51

This question came from our site for professional and enthusiast programmers.

Thanks, for tip – user1275513 May 15 '12 at 13:56

The safest way to do changes to the web.config is to use a one-time timer job that runs when a feature is activated on the specific Web Application and uses SPJobLockTyp.None (so it runs on all machines in the farm).

And please, make sure to make a corresponding one-time timer job that removes the configurations when the feature is deactivated.

share|improve this answer

Your Answer


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