<?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 : Is Cocktail Syncing when Syncing is turned off?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Is Cocktail Syncing when Syncing is turned off?</description>
  <pubDate>Wed, 10 Jun 2026 05:35:41 -700</pubDate>
  <lastBuildDate>Wed, 24 Apr 2013 11:37:07 -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=4122</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>Is Cocktail Syncing when Syncing is turned off? : Yes, the syncing logic always...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4122&amp;PID=16254#16254</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 4122<br /><strong>Posted:</strong> 24-Apr-2013 at 11:37am<br /><br />Yes, the syncing logic always triggers. The default sync interceptor just returns false. You need to ensure that all EntityManagers are created on the UI thread.&nbsp;<div><br></div><div>Why is your event handler called on a different thread? What is triggering the event? You can use the SynchronizationContext or Caliburn.Micro's Execute.OnUIThread to dispatch your handler code to the UI thread.&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 24 Apr 2013 11:37:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4122&amp;PID=16254#16254</guid>
  </item> 
  <item>
   <title>Is Cocktail Syncing when Syncing is turned off? : We never used the entitymanager...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4122&amp;PID=16249#16249</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1009" rel="nofollow">JohnBloom</a><br /><strong>Subject:</strong> 4122<br /><strong>Posted:</strong> 23-Apr-2013 at 1:43pm<br /><br />We never used the entitymanager syncing capabilities in Cocktail. We recently started getting this error on some of our saves:<div><br></div><div><div>Exception has been thrown by the target of an invocation.</div><div>&nbsp; &nbsp;at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)</div><div>&nbsp; &nbsp;at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)</div><div>&nbsp; &nbsp;at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)</div><div>&nbsp; &nbsp;at System.Runtime.CompilerServices.TaskAwaiter.GetResult()</div><div>&nbsp; &nbsp;at DomainServices.Models.BaseEntitiesRepository`1.&lt;Save&gt;d__8.MoveNext()</div><div>&nbsp; &nbsp;</div><div>&nbsp;An EntityManager can only execute on a single thread. This EntityManager is authorized to execute on the thread with id=’8’; the requested operation came from the thread with Id=‘1’.</div><div><br></div><div>You may have to disable this cross-thread checking for specific reasons such as automated testing. Please review our documentation on multi-threading issues and the EntityManager.AuthorizedThreadId property.</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityManager.SafeThreadingCheck()</div><div>&nbsp; &nbsp;at IdeaBlade.EntityModel.EntityManager.ImportEntities(IEnumerable entities, MergeStrategy mergeStrategy)</div><div>&nbsp; &nbsp;at Cocktail.EntityManagerProvider`1.Caliburn.Micro.IHandle&lt;Cocktail.SyncDataMessage&lt;T&gt;&gt;.Handle(SyncDataMessage`1 syncData)</div></div><div><br></div><div>It appears that this is being thrown by an entity manager that is trying to sync up its changes. We are calling save changes from an event so that is why the two managers would be on different threads. However we never added a sync interceptor and according to the documentation there is not syncing by default. I am still getting the problem even if I have an interceptor that returns false for importing and exporting. What am I doing wrong?</div>]]>
   </description>
   <pubDate>Tue, 23 Apr 2013 13:43:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4122&amp;PID=16249#16249</guid>
  </item> 
 </channel>
</rss>