<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.lhotka.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CSLA .NET discussion</title><link>http://forums.lhotka.net/forums/5.aspx</link><description>General discussion about CSLA .NET</description><dc:language /><generator>CommunityServer 2008.5 SP3 (Build: 36.8414)</generator><item><title>Re: MSTest multithreaded issue: Collection was modified; enumeration operation may not execute.</title><link>http://forums.lhotka.net/forums/thread/52614.aspx</link><pubDate>Mon, 23 Apr 2012 12:33:18 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52614</guid><dc:creator>decius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52614.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52614</wfw:commentRss><description>&lt;p&gt;Thank you both very much! Exactly what I needed&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: MSTest multithreaded issue: Collection was modified; enumeration operation may not execute.</title><link>http://forums.lhotka.net/forums/thread/52607.aspx</link><pubDate>Sun, 22 Apr 2012 21:35:38 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52607</guid><dc:creator>JonnyBee</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52607.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52607</wfw:commentRss><description>&lt;p&gt;You must implement IContextManager and you testcode must set the &lt;/p&gt;
&lt;p&gt;ApplicationContext.ContextManager (and)&lt;br /&gt;ApplicationContext.WebContextManager (can be set to null)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: MSTest multithreaded issue: Collection was modified; enumeration operation may not execute.</title><link>http://forums.lhotka.net/forums/thread/52606.aspx</link><pubDate>Sun, 22 Apr 2012 20:50:58 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52606</guid><dc:creator>RockfordLhotka</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52606.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52606</wfw:commentRss><description>&lt;p&gt;The context dictionaries in ApplicationContext are stored, by default, in an AppDomain level singleton. This will cause issues with multithreaded unit test runners. You can overcome this by supplying your own context provider that uses thread local storage instead.&lt;/p&gt;
&lt;p&gt;The provider is easy to write and use, just implement an interface and tell csla to use your type. I don&amp;#39;t remember the interface type off the top of my head, but you can look at the ApplicationContext code to find it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: MSTest multithreaded issue: Collection was modified; enumeration operation may not execute.</title><link>http://forums.lhotka.net/forums/thread/52599.aspx</link><pubDate>Sat, 21 Apr 2012 07:33:04 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52599</guid><dc:creator>JonnyBee</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52599.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52599</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try changing the code into&lt;/p&gt;
&lt;p&gt;&lt;b&gt;using (var mgr = Csla.Data.ContextManager&amp;lt;DalLinq.M3MigrationDataContext&amp;gt;.GetManager(System.Guid.NewGuid().ToString(&amp;quot;N&amp;quot;)))&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;When you call SubmitChanges in a child method you should always make sure that the &amp;quot;ContextManager&amp;quot; is owned by your method. &lt;br /&gt;IE: If any parent code on the same thread uses that named &amp;quot;ContextManager&amp;quot; you would submit more changes to the database than you might expect. &lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The preferred solution to load the ID property (assuming that this is part of a &amp;quot;larger&amp;quot; transaction) would be like this: &lt;b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;pre style="font-family:Consolas;font-size:13px;color:black;background:none repeat scroll 0% 0% #fafafa;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;private&lt;/span&gt;&amp;nbsp;&lt;span style="color:blue;"&gt;void&lt;/span&gt;&amp;nbsp;Child_Insert(&lt;span style="color:red;"&gt;DefaultConfig&lt;/span&gt;&amp;nbsp;parent)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;using&lt;/span&gt;&amp;nbsp;(&lt;span style="color:blue;"&gt;var&lt;/span&gt;&amp;nbsp;mgr&amp;nbsp;=&amp;nbsp;&lt;span style="color:red;"&gt;Csla&lt;/span&gt;.Data.ContextManager&amp;lt;DalLinq.&lt;span style="color:red;"&gt;M3MigrationDataContext&lt;/span&gt;&amp;gt;.GetManager(&lt;span style="color:#a31515;"&gt;&amp;quot;M3Migration&amp;quot;&lt;/span&gt;))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;var&lt;/span&gt;&amp;nbsp;data&amp;nbsp;=&amp;nbsp;&lt;span style="color:blue;"&gt;new&lt;/span&gt;&amp;nbsp;DalLinq.&lt;span style="color:red;"&gt;DefaultDetail&lt;/span&gt;()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:red;"&gt;DefaultConfigId&lt;/span&gt;&amp;nbsp;=&amp;nbsp;parent.&lt;span style="color:red;"&gt;Id&lt;/span&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:red;"&gt;DisplayText&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style="color:red;"&gt;DisplayText&lt;/span&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:red;"&gt;PropertyName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style="color:red;"&gt;PropertyName&lt;/span&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:red;"&gt;IsSelected&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style="color:red;"&gt;IsSelected&lt;/span&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:red;"&gt;IsRequired&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style="color:red;"&gt;IsRequired&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mgr.&lt;span style="color:red;"&gt;DataContext&lt;/span&gt;.DefaultDetails.InsertOnSubmit(data);
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;data.&lt;span style="color:red;"&gt;PropertyChanged&lt;/span&gt;&amp;nbsp;+=&amp;nbsp;(o,&amp;nbsp;e)&amp;nbsp;=&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:blue;"&gt;if&lt;/span&gt;&amp;nbsp;(e.&lt;span style="color:red;"&gt;PropertyName&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style="color:#a31515;"&gt;&amp;quot;DefaultDetailId&amp;quot;&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color:red;"&gt;LoadProperty&lt;/span&gt;(&lt;span style="color:red;"&gt;IdProperty&lt;/span&gt;,&amp;nbsp;((&lt;span style="color:red;"&gt;DefaultDetail&lt;/span&gt;)&amp;nbsp;o).DefaultDetailId);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;};
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: MSTest multithreaded issue: Collection was modified; enumeration operation may not execute.</title><link>http://forums.lhotka.net/forums/thread/52598.aspx</link><pubDate>Fri, 20 Apr 2012 22:33:22 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52598</guid><dc:creator>decius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52598.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52598</wfw:commentRss><description>&lt;p&gt;Okay, so it looks like this has SOMETHING to do with the ContextManager. I have this child object that&amp;#39;s in a completely different part of the object graph, but it seems that its insert is causing issues. If I remove the SubmitChanges from this unrelated object, the erratic smell goes away. Is there anything that might not be threadsafe in the ContextManager? The code below belongs to a child in a child collection of the parent. The checkrules throwing exception is in a lazy-&lt;span style="text-decoration:underline;"&gt;S&lt;/span&gt;yncronous child of the parent. Both perform data operations off the ContextManager.&lt;/p&gt;
&lt;p&gt;I suppose in real life this isn&amp;#39;t as much of a problem unless the app goes completely multithreaded, but it&amp;#39;s really screwing with my tests, so it&amp;#39;s quite annoying.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;This is all just a hunch, so I&amp;#39;ll see if I can spin up a simple test that recreates this in a simple project.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;private void Child_Insert(DefaultConfig parent)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;		&lt;/span&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt;			&lt;/span&gt;using (var mgr = Csla.Data.ContextManager&amp;lt;DalLinq.M3MigrationDataContext&amp;gt;.GetManager(&amp;quot;M3Migration&amp;quot;))&lt;/p&gt;
&lt;p&gt;&lt;span&gt;			&lt;/span&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;var data = new DalLinq.DefaultDetail()&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt;					&lt;/span&gt;DefaultConfigId = parent.Id,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;					&lt;/span&gt;DisplayText = DisplayText,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;					&lt;/span&gt;PropertyName = PropertyName,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;					&lt;/span&gt;IsSelected = IsSelected,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;					&lt;/span&gt;IsRequired = IsRequired&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;};&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;mgr.DataContext.DefaultDetails.InsertOnSubmit(data);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;try&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt;					&lt;/span&gt;mgr.DataContext.SubmitChanges(ConflictMode.ContinueOnConflict);&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;catch (ChangeConflictException e)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt;					&lt;/span&gt;foreach (ObjectChangeConflict occ in mgr.DataContext.ChangeConflicts)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;					&lt;/span&gt;{&lt;/p&gt;
&lt;p&gt;&lt;span&gt;						&lt;/span&gt;// All database values overwrite current values with&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;						&lt;/span&gt;//values from database&lt;/p&gt;
&lt;p&gt;&lt;span&gt;						&lt;/span&gt;occ.Resolve(RefreshMode.OverwriteCurrentValues);&lt;/p&gt;
&lt;p&gt;&lt;span&gt;					&lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;				&lt;/span&gt;LoadProperty(IdProperty, data.DefaultDetailId);&lt;/p&gt;
&lt;p&gt;&lt;span&gt;			&lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span&gt;		&lt;/span&gt;}&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: MSTest multithreaded issue: Collection was modified; enumeration operation may not execute.</title><link>http://forums.lhotka.net/forums/thread/52597.aspx</link><pubDate>Fri, 20 Apr 2012 19:31:48 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52597</guid><dc:creator>decius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52597.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52597</wfw:commentRss><description>&lt;p&gt;Having trouble recreating this, so it&amp;#39;s likely something funky with my class. No, I&amp;#39;m not using async rules, should I be?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: MSTest multithreaded issue: Collection was modified; enumeration operation may not execute.</title><link>http://forums.lhotka.net/forums/thread/52596.aspx</link><pubDate>Fri, 20 Apr 2012 19:06:16 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52596</guid><dc:creator>decius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52596.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52596</wfw:commentRss><description>&lt;p&gt;using version 4.3.2.0. I&amp;#39;ll see if I can recreate the problem in a different project and post if I can.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: MSTest multithreaded issue: Collection was modified; enumeration operation may not execute.</title><link>http://forums.lhotka.net/forums/thread/52589.aspx</link><pubDate>Fri, 20 Apr 2012 08:08:21 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52589</guid><dc:creator>JonnyBee</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52589.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52589</wfw:commentRss><description>&lt;p&gt;Which version of CSLA are you using? &lt;/p&gt;
&lt;p&gt;Do you use async rules? &lt;/p&gt;
&lt;p&gt;Are you able to create a test project that replicates the issue? &lt;br /&gt;This would help us identify the problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>MSTest multithreaded issue: Collection was modified; enumeration operation may not execute.</title><link>http://forums.lhotka.net/forums/thread/52588.aspx</link><pubDate>Thu, 19 Apr 2012 22:52:45 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52588</guid><dc:creator>decius</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52588.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52588</wfw:commentRss><description>&lt;p&gt;When I run my MSTests with multithreading enabled, I experience an&amp;nbsp;&lt;a href="http://xunitpatterns.com/Erratic%20Test.html"&gt;erratic test smell&lt;/a&gt;. It always occurs during&amp;nbsp;BusinessRules.CheckRules(); but I can&amp;#39;t seem to figure out what&amp;#39;s causing this for me. All of my business rules utilize the context.AddOutValue syntax, so I&amp;#39;m just not sure what my problem is. Can anyone help? Stacktrace below (just one example, it seems to occur on multiple business objects erratically).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;Test method Aps.SaasHr.Test.M3Migration.MigrantTest.ColumnMgrs_LazyOnOldTest threw exception:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Csla.DataPortalException: DataPortal.Update failed (Csla.DataPortalException: ChildDataPortal.Create failed on the server ---&amp;gt; Csla.Reflection.CallMethodException: Child_Create method call failed ---&amp;gt; Csla.DataPortalException: ChildDataPortal.Fetch failed on the server ---&amp;gt; Csla.Reflection.CallMethodException: Child_Fetch method call failed ---&amp;gt; System.InvalidOperationException: &lt;b&gt;Collection was modified; enumeration operation may not execute.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;at System.Collections.Generic.List`1.Enumerator.MoveNextRare()&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;at System.Collections.Generic.List`1.Enumerator.MoveNext()&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;at System.Linq.Enumerable.&amp;lt;DistinctIterator&amp;gt;d__81`1.MoveNext()&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;at Csla.Rules.BusinessRules.CheckRules()&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;at Aps.SaasHr.Library.M3Migration.CalcCodeMap.Child_Fetch(String e, String dedType) in C:\Documents and Settings\markb\My Documents\Visual Studio 2010\Projects\Aps.SaasHr\Aps.Saas.Library\M3Migration\CalcCodeMap.cs:line 789&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;at lambda_method(Closure , Object , Object[] )&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;at Csla.Reflection.MethodCaller.CallMethod(Object obj, DynamicMethodHandle methodHandle, Boolean hasParameters, Object[] parameters)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;--- End of inner exception stack trace ---&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>