<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/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>Report a Silverlight Bug</title><link>http://forums.silverlight.net/forums/28.aspx</link><description>Found a bug in Silverlight? Use this forum to describe the bug and the code or steps to reproduce it.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: ApplicationUnhandledException not called.</title><link>http://forums.silverlight.net/forums/thread/15574.aspx</link><pubDate>Wed, 26 Sep 2007 17:50:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:15574</guid><dc:creator>jjy2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/15574.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=15574</wfw:commentRss><description>&lt;p&gt;I think I need to clarify this as I saw similar issues in the other posts&lt;br /&gt;&lt;br /&gt;It seems we have 3 different but related issues&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Debugger does not break non-user code -- which is normal behaviour as VladF pointed out&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;When there are&amp;nbsp;uncaughted exceptions, sometimes framework emits the error message with messagebox sometimes it doesn&amp;#39;t. &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;WebApplication&lt;font size="2"&gt;.Current.ApplicationUnhandledException event suggested by its name that we can handle unhandled exception&amp;nbsp;using this event but this event is sometimes called and sometimes&amp;nbsp;not.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;/font&gt;&lt;font size="2"&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: ApplicationUnhandledException not thrown</title><link>http://forums.silverlight.net/forums/thread/15337.aspx</link><pubDate>Tue, 25 Sep 2007 09:37:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:15337</guid><dc:creator>jjy2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/15337.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=15337</wfw:commentRss><description>&lt;p&gt;Hi VladF&lt;/p&gt;
&lt;p&gt;Thanks for that. I now enabled just about every type of break in debugger.&lt;br /&gt;&lt;br /&gt;But I still need ApplicationUnhandledException to be called at runtime so that my application can take appropriate action. &lt;br /&gt;Hope this will be fixed in the release&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: ApplicationUnhandledException not thrown</title><link>http://forums.silverlight.net/forums/thread/15281.aspx</link><pubDate>Mon, 24 Sep 2007 20:41:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:15281</guid><dc:creator>VladF</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/15281.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=15281</wfw:commentRss><description>&lt;p&gt;Menu Debug | Exceptions -&amp;gt; check all the checks you need. For some reason they are unchecked by default.&lt;/p&gt;</description></item><item><title>ApplicationUnhandledException not thrown</title><link>http://forums.silverlight.net/forums/thread/14848.aspx</link><pubDate>Thu, 20 Sep 2007 08:01:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:14848</guid><dc:creator>jjy2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/14848.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=14848</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ApplicationUnhandledException&lt;/strong&gt; is not called if user codes throw exception during particular event handling &lt;br /&gt;(such as Loaded, MouseLeftButtonDown etc..)&lt;/p&gt;
&lt;p&gt;It seems it&amp;#39;s caught inside framework and codes executes continusly as if nothing happened.&lt;br /&gt;&lt;br /&gt;I got it working only if javascript calls C# class object&amp;#39;s method and if I throw an exception in that method.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I realized that I have to put try--cath in almost every event handling routines. &lt;/p&gt;
&lt;p&gt;Is this by design?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>