<?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>Undocumented WCSF Feature: Global Exception Handling</title><link>http://blogs.msdn.com/mpuleio/archive/2007/02/21/undocumented-wcsf-feature-global-exception-handling.aspx</link><description>There has been some traffic on the Web Client Software Factory discussion boards recently about exception handling and logging. People are asking how to add a global exception handler to their applciations. Rather than point folks at the discussions,</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Undocumented WCSF Feature: Global Exception Handling</title><link>http://blogs.msdn.com/mpuleio/archive/2007/02/21/undocumented-wcsf-feature-global-exception-handling.aspx#1738838</link><pubDate>Thu, 22 Feb 2007 07:28:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1738838</guid><dc:creator>ehoff</dc:creator><description>&lt;p&gt;wow..i think you just saved me a ton of work..&lt;/p&gt;
&lt;p&gt;i was just about to dig through about 15 web services to add global exception handling to them..i'll just borrow this HttpModule instead ;)&lt;/p&gt;
&lt;p&gt;if you ever come to Nashville, I owe you a beer (err..double shot of espresso) ;)&lt;/p&gt;
</description></item><item><title>re: Undocumented WCSF Feature: Global Exception Handling</title><link>http://blogs.msdn.com/mpuleio/archive/2007/02/21/undocumented-wcsf-feature-global-exception-handling.aspx#1739790</link><pubDate>Thu, 22 Feb 2007 10:16:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1739790</guid><dc:creator>Jarle</dc:creator><description>&lt;P&gt;hi ehoff&lt;/P&gt;
&lt;P&gt;hmm. saved you a ton of work? you could just catch the exception in global.asax like the olden days and use log4net where you can configure where the destination source where the error should be logged. ;-) It's a 5 minute job and not complicated at all.&lt;/P&gt;
&lt;P&gt;PS your code should be build so that no unhandled exception at all. There should be a try/catch around database, file, web service call etc. One strength (and irritation) of java is that the developer needs to explicitly handle exception from method calls that can potentially throw exception (like database connections). Unhandled exceptions are expensive and could result in you web app to shut down. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;</description></item><item><title>re: Undocumented WCSF Feature: Global Exception Handling</title><link>http://blogs.msdn.com/mpuleio/archive/2007/02/21/undocumented-wcsf-feature-global-exception-handling.aspx#1739864</link><pubDate>Thu, 22 Feb 2007 10:29:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1739864</guid><dc:creator>mpuleio</dc:creator><description>&lt;p&gt;ehoff, I'll let you know next time I'm in Nashville so I can get that coffee. ;-) I'm glad we could help.&lt;/p&gt;
&lt;p&gt;Jarle,&lt;/p&gt;
&lt;p&gt;Yes, it is a five minute job to add a similar block of code to the Global.asax. &amp;nbsp;However, with no code changes at all this module allows the same functionality in a consistent way across any number of web apps.&lt;/p&gt;
&lt;p&gt;And I do agree that it is much better to never have unhandled exceptions and judiciously use try/finally and try/catch/finally blocks. &amp;nbsp;However, during development and testing, having a record of all the exceptions that slip through is a great help in making sure they don't happen again after shipping. ;-)&lt;/p&gt;
</description></item><item><title>New and Notable 146</title><link>http://blogs.msdn.com/mpuleio/archive/2007/02/21/undocumented-wcsf-feature-global-exception-handling.aspx#1752911</link><pubDate>Sat, 24 Feb 2007 18:12:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1752911</guid><dc:creator>Sam Gentile</dc:creator><description>&lt;p&gt;Ah Saturday morning where we can sleep in, ah no wait...I have kids to wake me up at the crack of dawn...&lt;/p&gt;
</description></item><item><title>Global Exception Handling for free</title><link>http://blogs.msdn.com/mpuleio/archive/2007/02/21/undocumented-wcsf-feature-global-exception-handling.aspx#1766854</link><pubDate>Tue, 27 Feb 2007 06:21:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1766854</guid><dc:creator>Mariano Szklanny</dc:creator><description>&lt;p&gt;One of the things the Web Client Software Factory provides out-of-the-box is global exception handling.&lt;/p&gt;
</description></item><item><title>re: Undocumented WCSF Feature: Global Exception Handling</title><link>http://blogs.msdn.com/mpuleio/archive/2007/02/21/undocumented-wcsf-feature-global-exception-handling.aspx#1770156</link><pubDate>Tue, 27 Feb 2007 21:35:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1770156</guid><dc:creator>Alberto Fernandez</dc:creator><description>&lt;p&gt;How about if i want to show in a userinterfase the unhandleException... but not with the IIS exception page, but in a different way.&lt;/p&gt;
&lt;p&gt;What you recommend? How can i do it with WCSF?&lt;/p&gt;</description></item><item><title>re: Undocumented WCSF Feature: Global Exception Handling</title><link>http://blogs.msdn.com/mpuleio/archive/2007/02/21/undocumented-wcsf-feature-global-exception-handling.aspx#1782323</link><pubDate>Fri, 02 Mar 2007 02:34:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1782323</guid><dc:creator>mpuleio</dc:creator><description>&lt;p&gt;I'll refer how to questions over to the WCSF discussion board: &lt;a rel="nofollow" target="_new" href="http://www.codeplex.com/websf/Thread/List.aspx"&gt;http://www.codeplex.com/websf/Thread/List.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Enjoy&lt;/p&gt;
</description></item><item><title>New and Notable 146</title><link>http://blogs.msdn.com/mpuleio/archive/2007/02/21/undocumented-wcsf-feature-global-exception-handling.aspx#9170328</link><pubDate>Wed, 03 Dec 2008 18:14:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9170328</guid><dc:creator>Sam Gentile's Blog</dc:creator><description>&lt;p&gt;Ah Saturday morning where we can sleep in, ah no wait...I have kids to wake me up at the crack of dawn... Software Architecture The PAG folks continue to deliver their goodness with their first weekly drop of the new version of the Smart Client Software&lt;/p&gt;
</description></item></channel></rss>