...
<system.web>
...
<authentication mode="Windows" />
<trust level="Medium" />
</system.web>
...
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>
...