<?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 : Weird Code First Devforce Error</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Weird Code First Devforce Error</description>
  <pubDate>Wed, 13 May 2026 00:05:59 -700</pubDate>
  <lastBuildDate>Fri, 19 Oct 2012 12:34:15 -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=3729</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>Weird Code First Devforce Error :   Hi Von,The iRely.Reports.Model...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3729&amp;PID=14919#14919</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> 3729<br /><strong>Posted:</strong> 19-Oct-2012 at 12:34pm<br /><br />Hi Von,<div>&nbsp;</div><div>The iRely.Reports.Model assembly needs to be "enhanced" by PostSharp.&nbsp; I see that the iRely.BaseModel assembly contains PostSharp enhancements, but the other assembly does not.&nbsp; I know that the iRely.Reports.Model project does reference the PostSharp assembly and I don't see any settings which indicate PostSharp processing was skipped, but the assembly definitely does not contain the necessary PostSharp changes.&nbsp;&nbsp; Rebuild the project, and check the build output window for diagnostics.</div><div>&nbsp;</div><div>We agree that the errors you'll find with Code First development are often quite inscrutable, and we're trying to fix that.</div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Fri, 19 Oct 2012 12:34:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3729&amp;PID=14919#14919</guid>
  </item> 
  <item>
   <title>Weird Code First Devforce Error : Here&amp;#039;s the link of my Model...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3729&amp;PID=14912#14912</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3729<br /><strong>Posted:</strong> 18-Oct-2012 at 8:06pm<br /><br /><div><br></div><div>Here's the link of my Model Project</div><a href="uploads/1228/For_Devforce_Checking.rar" target="_blank">uploads/1228/For_Devforce_Checking.rar</a><div><br></div><div>After having hard time making this work with some unusual error such as "Key 'iRelyReportsEntities_Example' object reference.....' when performing query, we eliminate the error by just doing the relationship via Fluent API.</div><div><br>Now, the problem is, when trying a query "Object Ref is still showing but without the Key part"</div><div>I noticed that the problem occurs in the client side unlike the first one w/c occurs in the server side..</div><div><br></div><div>Here's the stack trace of the error:</div><div><br></div><div><div>&nbsp; at IdeaBlade.EntityModel.EntityProperty.GetValueRaw(IStructuralObject so)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityAspect.GetValueRaw(DataEntityProperty property, EntityVersion version)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityAspect.&lt;GetValuesRaw&gt;b__17(DataEntityProperty p)</div><div>&nbsp; &nbsp;at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()</div><div>&nbsp; &nbsp;at System.Linq.Buffer`1..ctor(IEnumerable`1 source)</div><div>&nbsp; &nbsp;at System.Linq.Enumerable.ToArray&#091;TSource&#093;(IEnumerable`1 source)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityAspect.GetValuesRaw(IEnumerable`1 properties)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityAspect.get_EntityKey()</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityGroup.LoadEntity(EntityAspect sourceAspect, MergeStrategy mergeStrategy, Boolean&amp; rowUpdated)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityMerger.MergeEntityCore(EntityAspect sourceAspect, EntityGroup targetEntityGroup)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityMerger.MergeEntity(EntityAspect sourceAspect, EntityGroup targetEntityGroup, NavigationContext context)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityMerger.&lt;&gt;c__DisplayClass9.&lt;MergeEntities&gt;b__8(EntityAspect sourceAspect)</div><div>&nbsp; &nbsp;at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)</div><div>&nbsp; &nbsp;at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()</div><div>&nbsp; &nbsp;at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.DataBlockFns.MakeResultList(Type type, IEnumerable items, Boolean isOrdered)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityQueryResult.UpdateDataSet(EntitiesDataBlock block, NavigationContext context)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntitiesDataBlock.Resolve(EntityQueryResult helper)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityQueryResultCollection..ctor(DataQueryResultCollection dqResults, EntityManager entityManager, MergeStrategy mergeStrategy)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityManager.MergeAndReturnUsingCache(IEntityFinder finder, DataQueryResultCollection dqResults)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityManager.ProcessFetchedData(DataQueryResultCollection dqResults, IEntityFinder finder)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityManager.ExecuteFetch(IEntityFinder finder)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityQueryFinder.Execute()</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityManager.ExecuteQueryCore(IEntityQuery query, Boolean isAsync)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityManager.ExecuteQuery&#091;T&#093;(IEntityQuery`1 query)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityQueryExtensions.Execute&#091;T&#093;(IEntityQuery`1 query)</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityQuery`1.GetEnumerator()</div><div>&nbsp; &nbsp;at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)</div><div>&nbsp; &nbsp;at System.Linq.Enumerable.ToList&#091;TSource&#093;(IEnumerable`1 source)</div><div>&nbsp; &nbsp;at TestProject.Program.Main(String&#091;&#093; args) in D:\NEW TFS 2\iRely Suite\Development Work\iRely Suite Report\TestProject\Program.cs:line 70</div><div>&nbsp; &nbsp;at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String&#091;&#093; args)</div><div>&nbsp; &nbsp;at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String&#091;&#093; args)</div><div>&nbsp; &nbsp;at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()</div><div>&nbsp; &nbsp;at System.Threading.ThreadHelper.ThreadStart_Context(Object state)</div><div>&nbsp; &nbsp;at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)</div><div>&nbsp; &nbsp;at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)</div><div>&nbsp; &nbsp;at System.Threading.ThreadHelper.ThreadStart()</div></div><div><br></div><div>I just wonder why it's so complicated using the Devforce Code First over to Database First?</div><div>It's just frustrating to have these errors that we didn't experience before we're on Database First.</div><div>Not to mention that there are no "user friendly message" when an error occurs.</div><div>I hope this can be improved.</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Thu, 18 Oct 2012 20:06:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3729&amp;PID=14912#14912</guid>
  </item> 
 </channel>
</rss>