<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using AppDomain Isolation to Detect Add-In Failures [Jesse Kaplan]</title><link>http://blogs.msdn.com/clraddins/archive/2007/05/01/using-appdomain-isolation-to-detect-add-in-failures-jesse-kaplan.aspx</link><description>One of the nice aspects of isolating add-ins in a different AppDomain is that it makes it easier to prevent failures in the Add-In from impacting the host and at the same time improves your ability to detect when a problem has occurred and which piece</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using AppDomain Isolation to Detect Add-In Failures [Jesse Kaplan]</title><link>http://blogs.msdn.com/clraddins/archive/2007/05/01/using-appdomain-isolation-to-detect-add-in-failures-jesse-kaplan.aspx#2356779</link><pubDate>Tue, 01 May 2007 15:51:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2356779</guid><dc:creator>Udi Dahan</dc:creator><description>&lt;p&gt;When you say that other hosts don't support this model, are you including IIS? If so, which version? 6? 7? What about WAS? What about the new Workflow Foundation runtime?&lt;/p&gt;
&lt;p&gt;We use AppDomains for the cases when we need the ability to unload assemblies at runtime. But one of the issues we're dealing with is communication from that AppDomain to data that belongs to the primary AppDomain. The threading issue you mentioned above is extremely important to get right in this scenario.&lt;/p&gt;
&lt;p&gt;Any advice or patterns you can point out would be most helpful.&lt;/p&gt;
</description></item><item><title>re: Using AppDomain Isolation to Detect Add-In Failures [Jesse Kaplan]</title><link>http://blogs.msdn.com/clraddins/archive/2007/05/01/using-appdomain-isolation-to-detect-add-in-failures-jesse-kaplan.aspx#2364542</link><pubDate>Wed, 02 May 2007 01:51:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2364542</guid><dc:creator>CLR Add-In Team</dc:creator><description>&lt;p&gt;The sample above only works when the host code is running from the default appdomain: this excludes cases where the host is running in places like IIS or from WAS. &lt;/p&gt;
&lt;p&gt;There are ways to get the same functionality in cases there the host isn't running in the default domain. Please stay tuned...&lt;/p&gt;
</description></item><item><title>More on Logging UnhandledExeptions from Managed Add-Ins [Jesse Kaplan]</title><link>http://blogs.msdn.com/clraddins/archive/2007/05/01/using-appdomain-isolation-to-detect-add-in-failures-jesse-kaplan.aspx#2387276</link><pubDate>Thu, 03 May 2007 08:17:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2387276</guid><dc:creator>CLR Add-In Team Blog</dc:creator><description>&lt;p&gt;Last time we discussed some issues to be aware of when trying to build hosts that are resilient to failures&lt;/p&gt;
</description></item><item><title>re: Using AppDomain Isolation to Detect Add-In Failures [Jesse Kaplan]</title><link>http://blogs.msdn.com/clraddins/archive/2007/05/01/using-appdomain-isolation-to-detect-add-in-failures-jesse-kaplan.aspx#5346139</link><pubDate>Sun, 07 Oct 2007 19:34:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5346139</guid><dc:creator>Michael Vainer</dc:creator><description>&lt;p&gt;Jesse, if I understand you correctly there is no way to completely recover from add-in child thread error but only log the exception? &amp;nbsp;Will this issue be handled in .Net 3.5 ? It is very important to keep the system running even though one of the add-ins malfunctioning.&lt;/p&gt;
</description></item><item><title>re: Using AppDomain Isolation to Detect Add-In Failures [Jesse Kaplan]</title><link>http://blogs.msdn.com/clraddins/archive/2007/05/01/using-appdomain-isolation-to-detect-add-in-failures-jesse-kaplan.aspx#6036404</link><pubDate>Sat, 10 Nov 2007 05:18:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6036404</guid><dc:creator>Alan Parker</dc:creator><description>&lt;p&gt;We have a window service that calls on add-in assemblies to do work. &amp;nbsp;These assemblies are loaded in their own AppDomain, can start their own threads which could throw, but then I am able to catch those unhandled exceptions in both the child AppDomain and default AppDomain's UnhandledExceptionEventHandler.&lt;/p&gt;
&lt;p&gt;However, I need the service to recover from this. &amp;nbsp;I was hoping to just unload the child domain and start it up again. &amp;nbsp;You suggest that there is a way to restart the application. &amp;nbsp;How would one do that? &amp;nbsp;Any suggestions for dealing with this scenario so we can keep the service running for a long time? &amp;nbsp;How does the IIS WP keep itself alive in similar situation (or does it also unload)?&lt;/p&gt;
</description></item></channel></rss>