<?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 : Navigation property null ref exception</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Navigation property null ref exception</description>
  <pubDate>Tue, 21 Apr 2026 22:13:19 -700</pubDate>
  <lastBuildDate>Fri, 30 Jul 2010 16:53:39 -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=1982</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>Navigation property null ref exception : Sure, can you send an email to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7941#7941</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 30-Jul-2010 at 4:53pm<br /><br />Sure, can you send an email to IdeaBladeSupportTrack at ideablade dot com with &#091;#7238&#093; as the subject line?&nbsp; Once I have your contact information, I can walk you through what we found. <span style="font-size:10px"><br /><br />Edited by ting - 30-Jul-2010 at 4:54pm</span>]]>
   </description>
   <pubDate>Fri, 30 Jul 2010 16:53:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7941#7941</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : Hey ting,  I&amp;#039;m going to be...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7936#7936</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=865" rel="nofollow">akukucka</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 30-Jul-2010 at 2:07pm<br /><br />Hey ting,<br /><br />I'm going to be troubleshooting this while Dave is away at VSLive next week.<br /><br />I just talked to him and he mentioned that a mock .edmx file was created<br />from a SQL Server database that mimics our schema.  He also mentioned that there were some differences between that .edmx and ours.<br /><br />I was wondering if you could send me the associations from that file (in the SSDL and CSDL) so I could compare it to ours.<br /><br />Thanks!]]>
   </description>
   <pubDate>Fri, 30 Jul 2010 14:07:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7936#7936</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : Thanks. We&amp;#039;re taking a look...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7929#7929</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 29-Jul-2010 at 11:23pm<br /><br />Thanks.&nbsp; We're taking a look at it.<DIV></DIV>]]>
   </description>
   <pubDate>Thu, 29 Jul 2010 23:23:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7929#7929</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : I&amp;#039;ve sent the project to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7849#7849</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=662" rel="nofollow">dpollot44</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 28-Jul-2010 at 7:15am<br /><br />I've sent the project to you again.<br><br>I've checked and double checked that this stuff works out the box using Entity Framework, and I'm definitely using the latest version of DevForce (6.0.4), so I'm really hoping that we can get this resolved, or you can at least point me in the right direction soon.&nbsp; We'd prefer not to start implementing hackish workarounds to what should be functional navigation properties...<br>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 07:15:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7849#7849</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : The PendingEntityResolved and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7759#7759</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> 1982<br /><strong>Posted:</strong> 22-Jul-2010 at 1:43pm<br /><br />The PendingEntityResolved and PendingEntityListResolved events are now available via the EntityAspect.<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Can you re-send your generated code file?&nbsp; </DIV>]]>
   </description>
   <pubDate>Thu, 22 Jul 2010 13:43:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7759#7759</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception :     I&amp;#039;m not sure I understand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7758#7758</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=662" rel="nofollow">dpollot44</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 22-Jul-2010 at 12:17pm<br /><br /><div ="msg">   <i>I'm not sure I understand why you're calling GetRelatedEntity.</i></div><br><br>We've disabled your "lazy loading" by default because we don't want developers grabbing navigation properties unintentionally and potentially sucking down our entire database while traversing the graph.&nbsp; I've made sure this behavior can be overridden (by default we traverse your relations and set them to no load), but for the most part we're going to force our developers into calling the LoadNavigationProperty method so that they're explicit about the data they want.&nbsp; Thus the reason we're calling GetRelatedEntity.&nbsp; <br><br><i>We've also made codegen updates between versions 6.0.1 and 6.0.4, so you need to be sure to re-save your EDMX so that the code is regenerated.</i><br><br>We do our own code generation with our own t4 templates.&nbsp; We're able to produce code that mirrors your code genned code, but allows us to do a number of additional things...<br><br><i>DevForce definitely still supports "asynchronous navigation" and the PendingEntityResolved and PendingEntityListResolved events</i><br><br>Those events used to be on EntityWrapper, which we're deriving from (since our objects derive from Entity).&nbsp; They don't seem to be there anymore after I upgraded to 6.0.4.<br>Lines like this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, Courier, mono">this.AssociationParent.PendingEntityResolved += (sender, args) =&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OnPropertyChanged(new PropertyChangedEventArgs("Properties"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (null != callback)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };</font><br>used to work, but no longer.&nbsp; My co-worker is still using version 6.0.1. and I can navigate to the event handlers on his machine, but not mine.&nbsp; Have they moved somewhere else??<br><br>]]>
   </description>
   <pubDate>Thu, 22 Jul 2010 12:17:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7758#7758</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : I&amp;#039;m not sure I understand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7757#7757</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> 1982<br /><strong>Posted:</strong> 22-Jul-2010 at 11:47am<br /><br />I'm not sure I understand why you're calling GetRelatedEntity.&nbsp; DevForce definitely still supports "asynchronous navigation" and the PendingEntityResolved and PendingEntityListResolved events.&nbsp; You should be able to directly access plt.PendingTransactionDescription without first calling LoadNavigationProperty and receive either the entity or a pending entity.<DIV></DIV><DIV>&nbsp;</DIV><DIV>We've also made codegen updates between versions 6.0.1 and 6.0.4, so you need to be sure to re-save your EDMX so that the code is regenerated.</DIV>]]>
   </description>
   <pubDate>Thu, 22 Jul 2010 11:47:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7757#7757</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : This release seems to have &amp;#034;sorta...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7751#7751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=662" rel="nofollow">dpollot44</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 22-Jul-2010 at 8:36am<br /><br />This release seems to have "sorta fixed" one problem, and not fixed the other.<br><br>The problem that it's partially fixed was the misbehaving association between transaction and transaction description...<br>Here's my calling code:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, Courier, mono">var plt = Context.EntityManager.PendingLongTransactions.FirstOrDefault();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; plt.LoadNavigationProperty("PendingTransactionDescription");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var desc = plt.PendingTransactionDescription;</font><br><br>Here's the LoadNavigationProperty method:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font face="Courier New, Courier, mono">public override void LoadNavigationProperty(string propertyName)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch(propertyName)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case "PendingTransactionDescription":<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.EntityAspect.GetRelatedEntity&lt;TransactionDescription&gt;(EntityRelations.FKPendingTxnTxnDescription.Role1.Link);&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</font><br><br>It no longer throws a null reference exception, however neither side of the association in terms of navigation properties are returning results (I've tested to be sure that there are actually results for both sides of the association for a given record (and that it still works in EF).<br><br>The other problem (where the call to GetRelatedEntity&lt;T&gt;(...) never returns) has not been fixed by the upgrade.<br>]]>
   </description>
   <pubDate>Thu, 22 Jul 2010 08:36:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7751#7751</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : I jumped the gun on the assembly...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7750#7750</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=662" rel="nofollow">dpollot44</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 22-Jul-2010 at 7:55am<br /><br />I jumped the gun on the assembly ref problem.&nbsp; I had my references set to target specific versions...<br>we'll either wind up targeting your assemblies directly from the install path as opposed to the gac, or just make sure that we're not targeting specific versions.<br>]]>
   </description>
   <pubDate>Thu, 22 Jul 2010 07:55:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7750#7750</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : 6.0.4 broke all my projects...First,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7749#7749</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=662" rel="nofollow">dpollot44</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 22-Jul-2010 at 7:21am<br /><br />6.0.4 broke all my projects...<br><br>First, it seems that after updating, I have to remove all the references (to ideablade assemblies like IdeaBlade.EntityModel, IdeaBlade.Core, etc.) and re-add them.&nbsp; Why is this??? (this will make upgrading an absolute nightmare).<br><br>Second, it appears you've gotten rid of PendingEntityResolved??<br><br>from my codegen:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //this.&lt;#= navigationProperty.Name #&gt;.PendingEntityResolved += (sender, args) =&gt; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; OnPropertyChanged(new PropertyChangedEventArgs("Properties"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; if (null != callback)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //};<br><br>which yields (for one specific entity) broken code:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //this.AssociationParent.PendingEntityResolved += (sender, args) =&gt; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; OnPropertyChanged(new PropertyChangedEventArgs("Properties"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; if (null != callback)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //};<br><br>I've gotten the project to build, but I'll have to go through and test to be sure that everything still works, and then I'll get to testing the functionality that prompted the upgrade in the first place... I would really like to know how we can circumvent breaking changes (in terms of assembly references) in the future.&nbsp; Obviously I'll just need to be more diligent about reading the release notes before upgrading next time for the other errors...<br>]]>
   </description>
   <pubDate>Thu, 22 Jul 2010 07:21:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7749#7749</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : I notice you&amp;#039;re running version...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7733#7733</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> 1982<br /><strong>Posted:</strong> 21-Jul-2010 at 5:27pm<br /><br />I notice you're running version 6.0.1, which was RC1 of DevForce 2010. &nbsp; We've made quite a few changes since then, and the RTM version 6.0.3.1 is currently available from our web site, while 6.0.4.0 will be coming later this week.&nbsp; Please upgrade to a more current version and see if the problems you've been seeing still occur.]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 17:27:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7733#7733</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : You can send it to me - kimj at...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7726#7726</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> 1982<br /><strong>Posted:</strong> 21-Jul-2010 at 12:20pm<br /><br />You can send it to me - kimj at ideablade.com.&nbsp; I don't need the database, as you say the EDMX, along with other nformation, should be sufficient.&nbsp; If you also have any debug logs that will help too.]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 12:20:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7726#7726</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : Absolutely. To whom shall is end...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7725#7725</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=662" rel="nofollow">dpollot44</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 21-Jul-2010 at 12:09pm<br /><br />Absolutely.&nbsp; To whom shall is end it?&nbsp; You'll have a problem running it unless you've got an informix database (and the provider) however, but I'm sure the edmx coupled with the stack trace I provided should be a good start.]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 12:09:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7725#7725</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : Since you&amp;#039;ve stripped this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7723#7723</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> 1982<br /><strong>Posted:</strong> 21-Jul-2010 at 10:10am<br /><br /><P>Since you've stripped this down to a bare bones sample, would you be willing to zip it and send it to us?&nbsp; If this application&nbsp;also exhibits the other problem you reported with an OutOfMemoery exception with navigation properties that would be great too.</P>]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 10:10:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7723#7723</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : Also, just as an FYI, I&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7717#7717</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=662" rel="nofollow">dpollot44</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 21-Jul-2010 at 6:12am<br /><br />Also, just as an FYI, I've tested both ends of this relationship with EF and was able to load them just fine... so it looks as though this could potentially be a bug on your end.<br>]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 06:12:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7717#7717</guid>
  </item> 
  <item>
   <title>Navigation property null ref exception : I have a couple of entities joined...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7699#7699</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=662" rel="nofollow">dpollot44</a><br /><strong>Subject:</strong> 1982<br /><strong>Posted:</strong> 20-Jul-2010 at 3:26pm<br /><br />I have a couple of entities joined by navigation properties, Transaction and TransactionDescription.&nbsp; In this case, TransactionDescription is the principal role (0..1) and Transaction is the dependent role (*).&nbsp; Transaction has a composite key on it made up of three columns, however none of those columns/properties are part of the association (they're joined by TxCode on one and TxnCode on another).&nbsp; The Edmx is completely valid as far as entity is concerned, and I've stripped away all developer involvement in a bare bones IdeaBlade 2-tier application consuming this edmx.&nbsp; I've made sure that I can successfully query TransactionDescription, however Transaction blows chunks all over the place when I try a simple .FirstOrDefault()<br><br>Here's the stack trace<br>Object reference not set to an instance of an object.<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.Entity.GetValueRaw(DataEntityProperty property, EntityVersion version)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.&lt;GetValuesRaw&gt;b__9(DataEntityProperty p)<br>&nbsp;&nbsp; at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)<br>&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()<br>&nbsp;&nbsp; at System.Linq.Buffer`1..ctor(IEnumerable`1 source)<br>&nbsp;&nbsp; at System.Linq.Enumerable.ToArray&#091;TSource&#093;(IEnumerable`1 source)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.GetValuesRaw(IEnumerable`1 properties)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FindRelatedWrappers(EntityRelationLink relationLink, Boolean includeDeleted)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FindRelatedWrapper(EntityRelationLink relationLink, Boolean includeDeleted)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.FindToEntity()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.FixupReferences()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.&lt;FixupReferences&gt;b__13(EntityReferenceBase eref)<br>&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FixupReferences()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.TrackChanged(EntityChangedEventArgs e)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.OnEntityChanged(EntityChangedEventArgs e)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.AddQueriedEntity(EntityWrapper wrapper)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.LoadEntity(EntityWrapper sourceWrapper, MergeStrategy mergeStrategy, Boolean&amp; rowUpdated)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntityCore(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntity(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup, NavigationContext context)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntity(EntityWrapper sourceWrapper, NavigationContext context)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResult.UpdateDataSet(EntityDataBlock block, NavigationContext context)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityDataBlock.Resolve(EntityQueryResult helper)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResultCollection..ctor(DataQueryResultCollection dqResults, EntityManager entityManager, MergeStrategy mergeStrategy)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.MergeAndReturnUsingCache(IEntityFinder finder, DataQueryResultCollection dqResults)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ProcessFetchedData(DataQueryResultCollection dqResults, IEntityFinder finder)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteFetch(IEntityFinder finder)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryFinder.Execute()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteQueryCore(IEntityQuery query, Boolean isAsync)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQuery`1.System.Linq.IQueryProvider.Execute&#091;TResult&#093;(Expression expression)<br>&nbsp;&nbsp; at System.Linq.Queryable.FirstOrDefault&#091;TSource&#093;(IQueryable`1 source)<br>&nbsp;&nbsp; at Testing.Client.MainWindow..ctor() in C:\Users\dpollot.MANNING-NAPIER\Documents\Visual Studio 2010\Projects\Testing\Testing.Client\MainWindow.xaml.cs:line 27<br><br>And here's an snippet of the csdl<br><br>&lt;EntityType Name="PendingLongTransaction"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Key&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyRef Name="SysDate" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyRef Name="SetNo" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyRef Name="LtRefer" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Key&gt; <br>...<br>&lt;/EntityType&gt;<br>&lt;EntityType Name="TransactionDescription"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Key&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyRef Name="TxnCode" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Key&gt;<br>...<br>&lt;/EntityType&gt;<br><br>&lt;Association Name="FKPendingTxnTxnDescription"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;End Type="OpenOrdersMaintenance.Data.PendingLongTransaction" Role="PendingLongTransaction" Multiplicity="*" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;End Type="OpenOrdersMaintenance.Data.TransactionDescription" Role="TransactionDescription" Multiplicity="0..1" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ReferentialConstraint&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Principal Role="TransactionDescription"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyRef Name="TxnCode" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Principal&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Dependent Role="PendingLongTransaction"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;PropertyRef Name="TxCode" /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Dependent&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ReferentialConstraint&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Association&gt;<br><br>Any ideas what's going on?<br>]]>
   </description>
   <pubDate>Tue, 20 Jul 2010 15:26:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1982&amp;PID=7699#7699</guid>
  </item> 
 </channel>
</rss>