Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 553889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:39:08+00:00 2026-05-13T11:39:08+00:00

How useful is partial trust configuration in ASP.NET environment? If I have my own

  • 0

How useful is partial trust configuration in ASP.NET environment? If I have my own server, which I fully administratively control, setting up partial trust is only useful in types of attacks which somehow manage to upload and execute malicious code, but are not able to touch web.config to raise the trust level. Are such attacks possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:39:08+00:00Added an answer on May 13, 2026 at 11:39 am

    I’ve beat my head against the wall on this one for a few years. With medium trust you quickly find out many, many 3rd party controls you use can’t cope with medium trust and you don’t always have the source code. As soon as you hit one line of code that must run in full trust and must not be put in the GAC–in my cases there were licensing restrictions on making the components sharable in the GAC–, you’re back to full trust.

    My advice:

    • Wait for .NET 4.0. The CAS model has simplified.
    • Fire up an appdomain per request and set the CAS permissions list at that point. You only get one CAS policy for the whole appdomain. Watch performance and scalability disappear when you fire up an app-domain per request, learn that inter-app domain communication is often painful, etc.

    To date, the only reason I can think that someone must use medium trust is if: discount hosting, your organization demands it (because it’s on a check list), because you’re allowing users to upload dlls on purpose (say if you were running a online decompilation service or a programming contest to let users submit the fastest dll).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking into Performance issues of an Asp.Net 2.0 Web Site which uses
I have been adding partial classes of my different entities to add various useful
I find functools.partial to be extremely useful, but I would like to be able
Which useful (for performance or otherwise) constructions are valid bytecode, but not expressable in
I have a simplified test scenario useful for asking this question: A Product can
I have some useful code written in C# and I want to use it
I have a Web solution which contains two projects ( A and B )
This is how I generate a URL in ASP.NET MVC currently: Url.Action(Index, new {
I want to custom error pages in my asp.net mvc3 website. So, I found
Anyone knows if is possible to have partial class definition on C++ ? Something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.