Server Fault is a question and answer site for system and network administrators. 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'm running a Windows 2008r2 server and I've set the default trust level of IIS to medium. However, one of my applications requires full trust so I've changed it in IIS. No problem so far, but when I upload a new web.config file the trust level is automatically changed to medium and my application doesn't work until I change it to full trust manually. How do I fix this?

share|improve this question
up vote 1 down vote accepted

Add <trust level="Full" /> in your web.config in the system.web section:

    <trust level="Full" />

When you make that change in IIS, it updates the web.config file. If you upload a new web.config without the trust level set, it will revert back to the default.

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.