<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Host a Partial Trust Sandbox – #7</title>
	<atom:link href="http://davedewinter.com/2009/05/22/how-to-host-a-partial-trust-sandbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://davedewinter.com/2009/05/22/how-to-host-a-partial-trust-sandbox/</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 22 Sep 2011 22:12:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: David DeWinter</title>
		<link>http://davedewinter.com/2009/05/22/how-to-host-a-partial-trust-sandbox/#comment-166</link>
		<dc:creator>David DeWinter</dc:creator>
		<pubDate>Sun, 21 Nov 2010 19:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/05/22/hosting-a-partial-trust-sandbox/#comment-166</guid>
		<description>The MAF assemblies are fully trusted, but remember that when demanding permissions the CLR checks the entire call stack for those permissions even across AppDomain boundaries, until it either reaches the end or hits an assert for the permission being demanded. I don&#039;t have much experience with MAF but if you could provide a stack trace and message that could help further diagnose the problem.</description>
		<content:encoded><![CDATA[<p>The MAF assemblies are fully trusted, but remember that when demanding permissions the CLR checks the entire call stack for those permissions even across AppDomain boundaries, until it either reaches the end or hits an assert for the permission being demanded. I don&#8217;t have much experience with MAF but if you could provide a stack trace and message that could help further diagnose the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Coulter</title>
		<link>http://davedewinter.com/2009/05/22/how-to-host-a-partial-trust-sandbox/#comment-165</link>
		<dc:creator>Tim Coulter</dc:creator>
		<pubDate>Fri, 19 Nov 2010 09:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/05/22/hosting-a-partial-trust-sandbox/#comment-165</guid>
		<description>Thanks for this insight. It has helped me to create a 90% solution to my problem, but I am struggling with the last 10% ...

I am using MAF to interface my WPF app to its 3rd party add-ins. MAF provides me with out-of-the-box functionality to run these add-ins in their own AppDomain and to specify the permissions assigned to that domain, but I also need to be able to run some of my own code in full-trust in the add-in domain, so I don&#039;t think I can use this basic functionality?

Instead, I am trying to use the MAF activation overload that accepts an AppDomain. Using the technique described in your post, I created an AppDomain that has restricted permissions, but is also given a list of my strong-named trusted assemblies. Unfortunately, when MAF executes AddInToken.Activate() it throws a SecurityException whilst performing the reflection necesary to discover the add-ins.

Since the MAF assemblies are in the GAC, shouldn&#039;t they automatically be fully trusted? Can you suggest anything else I could try to get past this obstacle.

Thanks,
Tim</description>
		<content:encoded><![CDATA[<p>Thanks for this insight. It has helped me to create a 90% solution to my problem, but I am struggling with the last 10% &#8230;</p>
<p>I am using MAF to interface my WPF app to its 3rd party add-ins. MAF provides me with out-of-the-box functionality to run these add-ins in their own AppDomain and to specify the permissions assigned to that domain, but I also need to be able to run some of my own code in full-trust in the add-in domain, so I don&#8217;t think I can use this basic functionality?</p>
<p>Instead, I am trying to use the MAF activation overload that accepts an AppDomain. Using the technique described in your post, I created an AppDomain that has restricted permissions, but is also given a list of my strong-named trusted assemblies. Unfortunately, when MAF executes AddInToken.Activate() it throws a SecurityException whilst performing the reflection necesary to discover the add-ins.</p>
<p>Since the MAF assemblies are in the GAC, shouldn&#8217;t they automatically be fully trusted? Can you suggest anything else I could try to get past this obstacle.</p>
<p>Thanks,<br />
Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tip #20 &#8211; Opting Out of Security Changes in .NET 4 in ASP.NET and Custom AppDomains &#124; David DeWinter</title>
		<link>http://davedewinter.com/2009/05/22/how-to-host-a-partial-trust-sandbox/#comment-164</link>
		<dc:creator>Tip #20 &#8211; Opting Out of Security Changes in .NET 4 in ASP.NET and Custom AppDomains &#124; David DeWinter</dc:creator>
		<pubDate>Tue, 02 Mar 2010 16:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.rev-net.com/ddewinter/2009/05/22/hosting-a-partial-trust-sandbox/#comment-164</guid>
		<description>[...] it relies on CAS Policy to apply specific permissions to assemblies. In .NET 4 ASP.NET sets up a sandbox AppDomain by default, which means that even if only fully trusted code is on the call stack, as soon as a [...] </description>
		<content:encoded><![CDATA[<p>[...] it relies on CAS Policy to apply specific permissions to assemblies. In .NET 4 ASP.NET sets up a sandbox AppDomain by default, which means that even if only fully trusted code is on the call stack, as soon as a [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

