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 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 stackoverflow.com 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

1 Answer 1

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

 
discard

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