Full trust and medium trust in .net and websites

Discussion in 'ASP .Net Security' started by Linda, Aug 31, 2006.

  1. Linda

    Linda Guest

    Hi,

    I have around 100 hosted sites and all of them run in "medium" trust as set
    in the machine.config. I want one of the sites to run in "full" trust and
    the rest in medium trust. How do I set that up in the machine.config or the
    policy files? Is there a way to specify one site to run in full trust and
    all the others in medium?

    I am not allowing my other sites to change the trust level, impersonation by
    themselves.

    Many thanks,

    Linda
     
    Linda, Aug 31, 2006
    #1
    1. Advertising

  2. Hi Linda,

    use a location element in machine.config

    <location path="Site/App">
    <system.web>
    <trust Level="Full" />


    ---
    Dominick Baier, DevelopMentor
    http://www.leastprivilege.com

    > Hi,
    >
    > I have around 100 hosted sites and all of them run in "medium" trust
    > as set in the machine.config. I want one of the sites to run in "full"
    > trust and the rest in medium trust. How do I set that up in the
    > machine.config or the policy files? Is there a way to specify one site
    > to run in full trust and all the others in medium?
    >
    > I am not allowing my other sites to change the trust level,
    > impersonation by themselves.
    >
    > Many thanks,
    >
    > Linda
    >
     
    Dominick Baier, Aug 31, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Hatcher

    Medium Level Trust and Reflection

    Paul Hatcher, Feb 25, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    510
    Paul Hatcher
    Feb 25, 2005
  2. Andy
    Replies:
    1
    Views:
    368
  3. Jordan M.
    Replies:
    1
    Views:
    541
    Mark Fitzpatrick
    Jun 23, 2007
  4. Replies:
    0
    Views:
    689
  5. Mr.Cyber
    Replies:
    3
    Views:
    351
    Nicole Calinoiu
    Dec 16, 2005
Loading...

Share This Page