<?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: Code 4004 &#8220;Unhandled error in silverlight application&#8221;</title>
	<atom:link href="http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/</link>
	<description>...how hard can it be?...</description>
	<lastBuildDate>Fri, 23 Dec 2011 18:36:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Scott Leckie</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-715</link>
		<dc:creator>Scott Leckie</dc:creator>
		<pubDate>Fri, 23 Dec 2011 18:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-715</guid>
		<description>&lt;p&gt;Thanks for that, Bryan&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for that, Bryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan Sampica</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-714</link>
		<dc:creator>Bryan Sampica</dc:creator>
		<pubDate>Fri, 23 Dec 2011 13:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-714</guid>
		<description>Thanks for this little tidbit: &#160;I started hitting this error, though my circumstances were different. &#160;I&#039;m using SIlverlight 5 and RIA services, but I&#039;m doing most of the work in a derived class, and wiring up a Context in the code behind.
I have client side validation using class attributes, as well as a custom validator that can only run on the server, so to fix my problem here&#039;s what I had to do:
context.SubmitChanges().Completed += (so,ea) =&gt;
{
if (((SubmitOperation)so).HasError) ((SubmitOperation)so).MarkErrorAsHandled();
// Rest of the work I do on completion
}</description>
		<content:encoded><![CDATA[<p>Thanks for this little tidbit: &nbsp;I started hitting this error, though my circumstances were different. &nbsp;I&#039;m using SIlverlight 5 and RIA services, but I&#039;m doing most of the work in a derived class, and wiring up a Context in the code behind.<br />
I have client side validation using class attributes, as well as a custom validator that can only run on the server, so to fix my problem here&#039;s what I had to do:<br />
context.SubmitChanges().Completed += (so,ea) =&gt;<br />
{<br />
if (((SubmitOperation)so).HasError) ((SubmitOperation)so).MarkErrorAsHandled();<br />
// Rest of the work I do on completion<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Osborne</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-704</link>
		<dc:creator>Steve Osborne</dc:creator>
		<pubDate>Thu, 22 Sep 2011 20:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-704</guid>
		<description>Thank you Siclesia. Your suggestion worked for me:
&quot;You can set-up a break point in App.xaml.cs @ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
this will show the exception detail.&quot;</description>
		<content:encoded><![CDATA[<p>Thank you Siclesia. Your suggestion worked for me:<br />
&quot;You can set-up a break point in App.xaml.cs @ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)<br />
this will show the exception detail.&quot;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siclesia</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-658</link>
		<dc:creator>siclesia</dc:creator>
		<pubDate>Fri, 01 Jul 2011 08:36:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-658</guid>
		<description>You can set-up a break point in App.xaml.cs @ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
       
this will show the exception detail.</description>
		<content:encoded><![CDATA[<p>You can set-up a break point in App.xaml.cs @ private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)</p>
<p>this will show the exception detail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gautham</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-639</link>
		<dc:creator>Gautham</dc:creator>
		<pubDate>Sun, 12 Jun 2011 12:00:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-639</guid>
		<description>Hello,
I was struggling on some error for quite &#160;along time. I am able to handle that after reading this blog.
Thankyou very much.
Regards,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Gautham
&#160;
&#160;</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I was struggling on some error for quite &nbsp;along time. I am able to handle that after reading this blog.<br />
Thankyou very much.<br />
Regards,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Gautham<br />
&nbsp;<br />
&nbsp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prachi</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-630</link>
		<dc:creator>prachi</dc:creator>
		<pubDate>Tue, 03 May 2011 12:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-630</guid>
		<description>I m also getting the the same exception while cliking on button..so plz...help me for solving this problem........</description>
		<content:encoded><![CDATA[<p>I m also getting the the same exception while cliking on button..so plz&#8230;help me for solving this problem&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rwsar</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-627</link>
		<dc:creator>Rwsar</dc:creator>
		<pubDate>Mon, 25 Apr 2011 10:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-627</guid>
		<description>I am getting the same error&#160;when click onn &#160;browser back button .please help me to fix that bug.Unhandled exception 4004.</description>
		<content:encoded><![CDATA[<p>I am getting the same error&nbsp;when click onn &nbsp;browser back button .please help me to fix that bug.Unhandled exception 4004.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-599</link>
		<dc:creator>Reza</dc:creator>
		<pubDate>Fri, 18 Mar 2011 13:44:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-599</guid>
		<description>Hello ,&lt;span&gt;I am getting the same exception.&lt;/span&gt;
I have combobox and datagrid that both have domaindatasource.for which one I need add this code?
Regards</description>
		<content:encoded><![CDATA[<p>Hello ,<span>I am getting the same exception.</span><br />
I have combobox and datagrid that both have domaindatasource.for which one I need add this code?<br />
Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tema Shore</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-596</link>
		<dc:creator>Tema Shore</dc:creator>
		<pubDate>Fri, 11 Mar 2011 03:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-596</guid>
		<description>I am getting the same exception and cannot figure out twhere the exception is coming from. I tried detach but it does not seem to do the trick...
Can someone help me?
Thanks</description>
		<content:encoded><![CDATA[<p>I am getting the same exception and cannot figure out twhere the exception is coming from. I tried detach but it does not seem to do the trick&#8230;<br />
Can someone help me?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Leckie</title>
		<link>http://www.scottleckie.com/2010/04/code-4004-unhandled-error-in-silverlight-application/comment-page-1/#comment-590</link>
		<dc:creator>Scott Leckie</dc:creator>
		<pubDate>Thu, 17 Feb 2011 20:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottleckie.com/?p=104#comment-590</guid>
		<description>&lt;p&gt;On the data source, add an event handler for SubmittedChanges. Another poster suggested the LoadedData event.&lt;/p&gt;
&lt;p&gt;&#160;&lt;/p&gt;
&lt;p&gt;The key, though, is to detach the debugger so that you can see &lt;em&gt;where&lt;/em&gt; the exception happened, and then put the code in that method.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>On the data source, add an event handler for SubmittedChanges. Another poster suggested the LoadedData event.</p>
<p>&nbsp;</p>
<p>The key, though, is to detach the debugger so that you can see <em>where</em> the exception happened, and then put the code in that method.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

