<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-158104178192097877.post2116262489149277346..comments</id><updated>2009-12-21T15:24:36.883+11:00</updated><category term='Team'/><category term='Visual Studio'/><category term='Performance'/><category term='Infrastructure'/><category term='Regular Expressions'/><category term='Errors'/><category term='Site Templates'/><category term='How-To'/><category term='Windows'/><category term='WMC'/><category term='Custom Field Controls'/><category term='ASP.NET'/><category term='Administration'/><category term='HTTP'/><category term='Web Development'/><category term='Book Reviews'/><category term='Flash'/><category term='Community'/><category term='RSS'/><category term='Networking'/><category term='Debugging'/><category term='MOSS'/><category term='Documentation'/><category term='Video'/><category term='SSP'/><category term='jQuery'/><category term='64-bit'/><category term='CSS'/><category term='Javascript'/><category term='Web Services'/><category term='XML'/><category term='Hyper-V'/><category term='SharePoint 2010'/><category term='IIS'/><category term='Presentations'/><category term='WSP Builder'/><category term='WSS'/><category term='Life'/><category term='Specific Business Domain Problems'/><category term='VoIP'/><category term='Upgrade'/><category term='Batch Files'/><category term='HTML'/><category term='SharePoint Designer'/><category term='Branding'/><category term='Process'/><category term='Installation'/><category term='.NET'/><category term='Meta'/><category term='Analytics'/><category term='Abstraction'/><category term='Microsoft'/><category term='Deployment'/><category term='SQL Server'/><category term='AJAX'/><category term='User Groups'/><category term='Management'/><category term='Security'/><category term='Web Content Management'/><category term='Best Practice'/><category term='Toolbox'/><category term='Opinion'/><category term='Browsers'/><category term='Web Design'/><category term='PowerShell'/><category term='thi'/><category term='Resources'/><category term='Things to Remember'/><category term='Links'/><category term='Tourism WA'/><category term='Web Parts'/><category term='SSL'/><category term='Virtualization'/><category term='Contracting'/><category term='Reusable Content'/><category term='Content'/><category term='Licensing'/><category term='List Programming'/><category term='Office'/><category term='TFS'/><category term='Software Development'/><category term='SharePoint'/><category term='Controls'/><category term='Jobs'/><category term='Workflow'/><category term='Caching'/><category term='Search'/><category term='C#'/><category term='Features'/><category term='SEO'/><category term='Database'/><category term='Active Directory'/><category term='Validation'/><category term='Tools'/><category term='Timezone'/><category term='Hardware'/><category term='IE'/><category term='Training'/><category term='Silverlight'/><title type='text'>Comments on Dirty Words: Inner exception details displayed instead of wrapp...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.mediawhole.com/feeds/2116262489149277346/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/158104178192097877/2116262489149277346/comments/default'/><link rel='alternate' type='text/html' href='http://blog.mediawhole.com/2009/12/inner-exception-details-displayed.html'/><author><name>Michael Hanes</name><uri>http://www.blogger.com/profile/01877569030107816208</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-a7o_YpicYcQ/TqirMmZt3HI/AAAAAAAADiM/N8xoftyG-0k/s220/Michael%2BHanes%2BCropped%2B2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-158104178192097877.post-7693319760642237193</id><published>2009-12-21T15:24:36.883+11:00</published><updated>2009-12-21T15:24:36.883+11:00</updated><title type='text'>Hi Dario,

It&amp;#39;s definitely the &amp;quot;inconsist...</title><content type='html'>Hi Dario,&lt;br /&gt;&lt;br /&gt;It&amp;#39;s definitely the &amp;quot;inconsistency&amp;quot; (that&amp;#39;s what I&amp;#39;m calling it and I&amp;#39;m sticking to it!!) between what ASP.NET displays and what&amp;#39;s going execution-wise that&amp;#39;s bothering me. You&amp;#39;re right: the exception hierarchy is still intact. &lt;br /&gt;&lt;br /&gt;Because we don&amp;#39;t display friendly errors internally, my intention was to wrap a DirectoryNotFoundException with some additional context and specific instructions for correcting the problem. Setting up a new environment invariably throws up exceptions along the way when a specific configuration requirement isn&amp;#39;t satisfied and this was to assist in those cases. &lt;br /&gt;&lt;br /&gt;As far as I&amp;#39;m concerned as a naive developer, I&amp;#39;ve handled the inner exception and thrown the wrapper instead; it&amp;#39;s the wrappaer message I feel ASP.NET should be presenting to me (in this particular case ;-). If I&amp;#39;m after the root cause I can dissect the stack trace.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/158104178192097877/2116262489149277346/comments/default/7693319760642237193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/158104178192097877/2116262489149277346/comments/default/7693319760642237193'/><link rel='alternate' type='text/html' href='http://blog.mediawhole.com/2009/12/inner-exception-details-displayed.html?showComment=1261369476883#c7693319760642237193' title=''/><author><name>michhes</name><uri>http://www.blogger.com/profile/01877569030107816208</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://bp1.blogger.com/_kuHIq0i1UO4/SGWWQ8gfIyI/AAAAAAAABSk/KsUFmXT9c14/S220/P7280037.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.mediawhole.com/2009/12/inner-exception-details-displayed.html' ref='tag:blogger.com,1999:blog-158104178192097877.post-2116262489149277346' source='http://www.blogger.com/feeds/158104178192097877/posts/default/2116262489149277346' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1669989462'/></entry><entry><id>tag:blogger.com,1999:blog-158104178192097877.post-4835300309103951042</id><published>2009-12-19T01:57:16.640+11:00</published><updated>2009-12-19T01:57:16.640+11:00</updated><title type='text'>Hi Michael

I&amp;#39;m not sure I understand the prob...</title><content type='html'>Hi Michael&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not sure I understand the problem. What you&amp;#39;re seeing is how ASP.NET displays the exception. I don&amp;#39;t understand how this affects handling in your own code.&lt;br /&gt;&lt;br /&gt;ASP.NET is merely displaying the innermost exception (i.e. the root cause of the problem). With Reflector you can see this in the implementation of &lt;b&gt;System.Web.UnhandledErrorFormatter&lt;/b&gt; (the class responsible for rendering the default error message). The &lt;b&gt;PrepareFormatter()&lt;/b&gt; contains a loop where the innermost non-null &lt;b&gt;InnerException&lt;/b&gt; is extracted and displayed.&lt;br /&gt;&lt;br /&gt;This behaviour shouldn&amp;#39;t affect your own error handling though. The exception hierarchy is still intact. Perhaps I&amp;#39;ve missed what you were getting at?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/158104178192097877/2116262489149277346/comments/default/4835300309103951042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/158104178192097877/2116262489149277346/comments/default/4835300309103951042'/><link rel='alternate' type='text/html' href='http://blog.mediawhole.com/2009/12/inner-exception-details-displayed.html?showComment=1261148236640#c4835300309103951042' title=''/><author><name>Dario</name><uri>http://www.blogger.com/profile/05223600970374017125</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.mediawhole.com/2009/12/inner-exception-details-displayed.html' ref='tag:blogger.com,1999:blog-158104178192097877.post-2116262489149277346' source='http://www.blogger.com/feeds/158104178192097877/posts/default/2116262489149277346' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1584153841'/></entry></feed>
