Is there a way to simulate medium trust in VS2010
Asked Answered
I

2

6

I am looking for "easy button", where I can say run this app under medium trust.

Ignominious answered 1/3, 2011 at 21:19 Comment(0)
C
4

Yes,

As per: http://blog.mahingupta.com/mahingupta/blog/post/2010/08/01/AspNet-Set-Medium-trust-in-local.aspx

<system.web>
    <trust level="Medium" />
</system.web>

Just note that most hosts do modifications to their medium trust offerings. Usually give few more permissions for LINQ and cross-server calls, but it differs from one host to another.

Censurable answered 1/3, 2011 at 21:24 Comment(0)
M
0

You can configure medium trust - just add a configuration option.

To configure an application to run with medium trust, add the following element to either the application's specific Web.config file in the application's virtual root directory or to the machine-level Web.config file.

<trust level="Medium" originUrl="" />

Marlenmarlena answered 1/3, 2011 at 21:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.