3

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

migrated from stackoverflow.com May 16 '12 at 19:51

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

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.

Your Answer

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