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 a SharePoint solution deployed into a specific web application on the production SharePoint site.

When I try to enable the feature from the site features in Site Settings I get an error saying it "Failed to apply web.config modifications to the web application" and the access to the web.config file is denied.

When we tried this on test we had no problems.

Does anyone know why this would be the case and how it can be resolved?

Thanks Gavin

share|improve this question
Probably permissions - what account is the code that applies the modifications running under? – James Love Mar 11 '13 at 22:44

Check the permission on the inetpub folders or the folder of that web app and compare with the permission in test environment.

share|improve this answer

Your Answer


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.