I have two web applications (pre-compiled sites), one is first-party and will run at full trust. Another is third-party and should run at partial trust (or with specific permissions).
TrustedAssembly.Web.Pages.MyPage
should run in the full trust default AppDomain.
UntrustedAssembly.Web.Pages.SomePage
should run in a partial trust AppDomain.
Furthermore, if TrustedAssembly.Web.Pages.MyPage
dynamically loads UntrustedAssembly.Web.Controls.SomeControl
is it possible to run the control in partial trust and/or with specific permissions, while the page runs under full trust?
And vice versa, e.g. UntrustedAssembly.Web.Controls.SomePage
dynamically loads TrustedAssembly.Web.Controls.MyControl
, is it possible to run the control in full trust while the page runs under partial trust?
Update/FYI: This is .NET 4