Enable Full trust mode for ASP.NET sites

To enable Full trust mode for ASP.NET sites please follow these steps-

Locate web.config file at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG
or
%systemroot%\Microsoft.NET\Framework\v2.0.50727\CONFIG

Add the following entries at the top of the page before the entry ‘<location allowOverride=”false”>’ (Without quotes)-

<location path=”your website name here” allowOverride=”true”>
<system.web>
<trust level=”Full” originUrl=”.*”/>
</system.web>
</location>

Finally restart IIS.

***Note: Please take a copy of web.config before making the above changes***

Category: Windows 2003  Tags:
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
3 Responses
  1. Chandru says:

    This approach doesnot work at all. Please be more specific about the configuration by giving some screen shots.

  2. Scott L says:

    hi there,

    thanks for sharing. I like to add that you can enable Full Trust mode on code basis, but your host needs to allow read and write permission on the folder as well in order for the Full Trust mode to work properly. I had problems before, but luckily my host, ASPHostCentral.com did inform me about it.

    Hope this helps.

  3. admin says:

    @Chandru – Where are you trying to make the above changes? In server or inside your site’s web.config? The above method should be done only in server side web.config.
    Thanks,
    Arun

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>