Reload root web.config without restaring IIS

3.9k Views Asked by At

My app is being moved from a server running IIS6 to a server running IIS7.5.

The new server defaults to Medium Trust. As this is a shared server and I am consuming some third-party assemblies, I don't want to ask to run my app under Full Trust.

I have copied web_mediumtrust.config to mycustom_mediumtrust.config.

I have added this second line to the root web.config but the new MyCustom trust level remains unavailable.

<trustLevel name="High" policyFile="web_hightrust.config" />
<trustLevel name="MyCustom" policyFile="mycustom_mediumtrust.config" />
<trustLevel name="Medium" policyFile="web_mediumtrust.config" />

Is there a way to force a reload of the root web.config without restarting IIS and all the other apps?

0

There are 0 best solutions below