Asp.net MVC Medium Trust Remote Host
<p>I’m having issues getting my asp.net mvc application working on my remote host.</p>

<p>The host needs all sites to be working with medium trust.</p>

<p>I’ve modified my machine web.config “\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG” and created a new project so my new application web.config picks up the changes.</p>

<p><strong>Machine web.config</strong></p>

<pre><code>  &lt;location allowOverride="true"&gt;
    &lt;system.web&gt;
      &lt;securityPolicy&gt;
        &lt;trustLevel name="Full" policyFile="internal"/&gt;
        &lt;trustLevel name="High" policyFile="web_hightrust.config"/&gt;
        &lt;trustLevel name="Medium" policyFile="web_mediumtrust.config"/&gt;
        &lt;trustLevel name="Low" policyFile="web_lowtrust.config"/&gt;
        &lt;trustLevel name="Minimal" policyFile="web_minimaltrust.config"/&gt;
      &lt;/securityPolicy&gt;
      &lt;trust level=" Medium " originUrl=""/&gt;
    &lt;/system.web&gt;
  &lt;/location&gt;
</code></pre>

<p>When I upload to the host I get an error about System.Security.Permissions.ReflectionPermission and changing the trust level but when I click refresh I get an error about my route.</p>

<p>The route works fine locally so I can only put it down to the trust levels.</p>

<p>I may be missing something as I’ve not deployed to a remote host before.</p>

<p>Do I need to add anything to the website web.config?</p>

<p>Any help or advice would be great.</p>

<p>Also when I make a change to my machine web.config will my applcation pick up these settings when I next build in visual studio?</p>
