<?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 : Collection modified error</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Collection modified error</description>
  <pubDate>Mon, 13 Apr 2026 05:27:27 -700</pubDate>
  <lastBuildDate>Fri, 08 Jul 2011 12:20:35 -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=2816</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>Collection modified error :   Hi midnit,Please disregard...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2816&amp;PID=11206#11206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2816<br /><strong>Posted:</strong> 08-Jul-2011 at 12:20pm<br /><br />Hi midnit,<div>&nbsp;</div><div>Please disregard my previous post. I was able to reproduce it here and will file a bug.</div><div>&nbsp;</div><div>Silvio.</div>]]>
   </description>
   <pubDate>Fri, 08 Jul 2011 12:20:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2816&amp;PID=11206#11206</guid>
  </item> 
  <item>
   <title>Collection modified error :   midnit,Can you upload a sample...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2816&amp;PID=11203#11203</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2816<br /><strong>Posted:</strong> 08-Jul-2011 at 10:31am<br /><br />midnit,<div>&nbsp;</div><div>Can you upload a sample reproducing the problem?</div><div>&nbsp;</div><div>Silvio.</div>]]>
   </description>
   <pubDate>Fri, 08 Jul 2011 10:31:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2816&amp;PID=11203#11203</guid>
  </item> 
  <item>
   <title>Collection modified error : I ran into an error I was not...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2816&amp;PID=11194#11194</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=531" rel="nofollow">midnit</a><br /><strong>Subject:</strong> 2816<br /><strong>Posted:</strong> 07-Jul-2011 at 6:41am<br /><br />I ran into an error I was not expecting and though I&nbsp;can prevent it I thought maybe it at least shouldn't blow up with this error... <DIV>&nbsp;</DIV><DIV>I have an entity ContactBa that has a relationship with Contact which has a relationship with Department. When I create a new ContactBa it of course has no Contact which of course has no Department, but if the UI is bound to ContactBa.Contact.Department.Name...I get a collection modified error thrown. I presume its trying to "get" (lazily?) the Contact and Department but of course there is nothing if I justed create the ContactBa entity on the client. Turning off lazy loading did not prevent the error so...maybe its something else. If I remove the UI binding I do not get the error when I add a new ContactBa.</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td class="BBquote">Collection was modified; enumeration operation may not execute. &nbsp;&nbsp; at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)<BR>&nbsp;&nbsp; at System.Collections.Generic.List`1.Enumerator.MoveNextRare()<BR>&nbsp;&nbsp; at System.Collections.Generic.List`1.Enumerator.MoveNext()<BR>&nbsp;&nbsp; at System.Linq.Enumerable.WhereListIterator`1.MoveNext()<BR>&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.PendingEntityMap.Update(EntityWrapper pendingWrapper, EntityWrapper realWrapper)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.InformPendingEntityOfRealEntity(EntityWrapper realEntity)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.QueryCallback(EntityQueryOperation op)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.BaseOperation`2.OnCompleted()<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.BaseOperation`2.IdeaBlade.EntityModel.IHasAsyncEventArgs.OnCompleted()<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.&lt;&gt;c__DisplayClass2.&lt;.ctor&gt;b__0(TArgs args)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.Signal()<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.&lt;Execute&gt;b__5(Object x)</td></tr></table></DIV><span style="font-size:10px"><br /><br />Edited by midnit - 07-Jul-2011 at 6:41am</span>]]>
   </description>
   <pubDate>Thu, 07 Jul 2011 06:41:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2816&amp;PID=11194#11194</guid>
  </item> 
 </channel>
</rss>