Version

How Do I Test My Web Application Under Medium Trust During Development?

You can target your hosting provider’s trust level in development by modifying the <trust> element in your Web application project’s Web.config file, as shown in the following XML excerpt.

...
<system.web>
...
      <authentication mode="Windows" />
       <trust level="Medium" />
</system.web>
...