<?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: Run Anonymous Methods in Another AppDomain</title>
	<atom:link href="http://thevalerios.net/matt/2008/06/run-anonymous-methods-in-another-appdomain/feed/" rel="self" type="application/rss+xml" />
	<link>http://thevalerios.net/matt/2008/06/run-anonymous-methods-in-another-appdomain/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 07 Mar 2012 21:34:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: mpb</title>
		<link>http://thevalerios.net/matt/2008/06/run-anonymous-methods-in-another-appdomain/comment-page-1/#comment-29058</link>
		<dc:creator>mpb</dc:creator>
		<pubDate>Fri, 15 Oct 2010 09:04:58 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/run-anonymous-methods-in-another-appdomain/#comment-29058</guid>
		<description>Just in case someelse comes across the problem I encountered; figured it out...
Despite that the type to which we would like to unwrap is known in the default appdomain.. it can have trouble figuring this out at runtime apparently. You can resolve this by binding the AppDomain.CurrentDomain.AssemblyResolve event (ie. AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(SomeAssemblyResolve) obviously...)
 the SomeAssemblyResolve will have an eventarg.Name.. this is the name of the assembly in question and can be loaded through System.Reflection.Assembly.Load(..) or Assemly.LoadFromPartialName(...) (although deprecated)..
When this event is handled... your proxy will be correctly unwrap towards the expected class.

Hope it helps someone :)</description>
		<content:encoded><![CDATA[<p>Just in case someelse comes across the problem I encountered; figured it out&#8230;<br />
Despite that the type to which we would like to unwrap is known in the default appdomain.. it can have trouble figuring this out at runtime apparently. You can resolve this by binding the AppDomain.CurrentDomain.AssemblyResolve event (ie. AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(SomeAssemblyResolve) obviously&#8230;)<br />
 the SomeAssemblyResolve will have an eventarg.Name.. this is the name of the assembly in question and can be loaded through System.Reflection.Assembly.Load(..) or Assemly.LoadFromPartialName(&#8230;) (although deprecated)..<br />
When this event is handled&#8230; your proxy will be correctly unwrap towards the expected class.</p>
<p>Hope it helps someone <img src='http://thevalerios.net/matt/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mpb</title>
		<link>http://thevalerios.net/matt/2008/06/run-anonymous-methods-in-another-appdomain/comment-page-1/#comment-28938</link>
		<dc:creator>mpb</dc:creator>
		<pubDate>Wed, 13 Oct 2010 09:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/run-anonymous-methods-in-another-appdomain/#comment-28938</guid>
		<description>Hey matt,
I&#039;ve been trying something very similar.. and hit a problem when hitting the createInstanceUnwrap() method. It creates
a transparentproxy without any problem, but it can&#039;t be
casted to the type.
I tried your code to see what the difference would be..
turns out.. I get the same error?!
Did you come across this situation too?

regards,
Merijn</description>
		<content:encoded><![CDATA[<p>Hey matt,<br />
I&#8217;ve been trying something very similar.. and hit a problem when hitting the createInstanceUnwrap() method. It creates<br />
a transparentproxy without any problem, but it can&#8217;t be<br />
casted to the type.<br />
I tried your code to see what the difference would be..<br />
turns out.. I get the same error?!<br />
Did you come across this situation too?</p>
<p>regards,<br />
Merijn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: valerio.net &#187; Blog Archive &#187; Run Anonymous Methods in Another AppDomain, Part 2</title>
		<link>http://thevalerios.net/matt/2008/06/run-anonymous-methods-in-another-appdomain/comment-page-1/#comment-75</link>
		<dc:creator>valerio.net &#187; Blog Archive &#187; Run Anonymous Methods in Another AppDomain, Part 2</dc:creator>
		<pubDate>Mon, 23 Jun 2008 02:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://thevalerios.net/matt/2008/06/run-anonymous-methods-in-another-appdomain/#comment-75</guid>
		<description>[...] Run Anonymous Methods in Another AppDomain  [...]</description>
		<content:encoded><![CDATA[<p>[...] Run Anonymous Methods in Another AppDomain  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

