<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Silverlight - Cannot Coerce</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Silverlight - Cannot Coerce</description>
  <pubDate>Sun, 12 Apr 2026 14:40:30 -700</pubDate>
  <lastBuildDate>Mon, 20 Dec 2010 06:47:37 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2376</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Silverlight - Cannot Coerce : (Hitting myself on the head at...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2376&amp;PID=9433#9433</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1019" rel="nofollow">jipock</a><br /><strong>Subject:</strong> 2376<br /><strong>Posted:</strong> 20-Dec-2010 at 6:47am<br /><br /><P>(Hitting myself on the head at the answer)...&nbsp; </P><DIV>It's working now. Thank you!</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 20 Dec 2010 06:47:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2376&amp;PID=9433#9433</guid>
  </item> 
  <item>
   <title>Silverlight - Cannot Coerce : The arguments to the BeforeSetAnyProperty...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2376&amp;PID=9427#9427</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 2376<br /><strong>Posted:</strong> 17-Dec-2010 at 7:23pm<br /><br />The arguments to the BeforeSetAnyProperty property interceptor need to be less specific.&nbsp; Since the interceptor will be called before setting any property on the entity, the arguments need to be suitable for any property type.&nbsp; There are a number of different arguments which will work, a few would be:<DIV>&nbsp;</DIV><DIV>&nbsp; BeforeSetAnyProperty(IPropertyInterceptorArgs args)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; BeforeSetAnyProperty(PropertyInterceptorArgs&lt;Engine, object&gt; args)</DIV><DIV>&nbsp;</DIV><DIV>Check out the BeforeSetAttribute in the DevForce Help Reference installed with the product for more possibilities.</DIV>]]>
   </description>
   <pubDate>Fri, 17 Dec 2010 19:23:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2376&amp;PID=9427#9427</guid>
  </item> 
  <item>
   <title>Silverlight - Cannot Coerce : Good Evening,   I&amp;#039;m trying...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2376&amp;PID=9401#9401</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1019" rel="nofollow">jipock</a><br /><strong>Subject:</strong> 2376<br /><strong>Posted:</strong> 14-Dec-2010 at 1:50pm<br /><br />Good Evening, <DIV>&nbsp;</DIV><DIV>I'm trying to edit an entity that I've created and am getting a "Cannot Coerce...." error. </DIV><DIV>&nbsp;</DIV><DIV>Specifically,I have an object (say, a car) that contains an object (Engine). I'm loading this from the database without any errors. But, I want to 'click a button and select a new engine from a child window and put this selected engine into the engine property of the car (and essentially removing the original engine).&nbsp; My code looks like this: </DIV><DIV>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>if</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> (box.DialogResult == </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>true</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>){</P><P>_model.CurrentCar.EngineId = box.SelectedEngine.EngineID;</P><P>_model.CurrentCar.Engine = box.SelectedEngine; }</P><DIV></DIV><DIV>To confirm - the Engine and Selected Engine are the same IdeaBlade entity object type (just different instantiations). </DIV><DIV>&nbsp;</DIV><DIV>The Error message is: "Unable to construct a PropertyInterceptorAction for method: BeforeSetAnyProperty' in type 'Namespace.Engine' Cannot coerce IdeaBlade.EntityeModel.NavigationEntityPropertySetInterceptorsArgs..." </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Any suggestions where to look for an answer?</DIV></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 14 Dec 2010 13:50:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2376&amp;PID=9401#9401</guid>
  </item> 
 </channel>
</rss>