<?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 : SaveChangesAsync never returns</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : SaveChangesAsync never returns</description>
  <pubDate>Thu, 21 May 2026 16:26:03 -700</pubDate>
  <lastBuildDate>Tue, 18 May 2010 23:39:50 -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=1799</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>SaveChangesAsync never returns : yip. thanks dude :) </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6948#6948</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=615" rel="nofollow">RyanBritton</a><br /><strong>Subject:</strong> 1799<br /><strong>Posted:</strong> 18-May-2010 at 11:39pm<br /><br />yip. thanks dude :)]]>
   </description>
   <pubDate>Tue, 18 May 2010 23:39:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6948#6948</guid>
  </item> 
  <item>
   <title>SaveChangesAsync never returns : Good call jsobell. Thanks for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6936#6936</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> 1799<br /><strong>Posted:</strong> 18-May-2010 at 3:14pm<br /><br /><P>Good call jsobell.&nbsp; Thanks for the help!</P><DIV></DIV>]]>
   </description>
   <pubDate>Tue, 18 May 2010 15:14:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6936#6936</guid>
  </item> 
  <item>
   <title>SaveChangesAsync never returns : it turns out that it was definitely...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6901#6901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=615" rel="nofollow">RyanBritton</a><br /><strong>Subject:</strong> 1799<br /><strong>Posted:</strong> 17-May-2010 at 6:18am<br /><br />it turns out that it was definitely a server-side lock as you guessed.... ]]>
   </description>
   <pubDate>Mon, 17 May 2010 06:18:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6901#6901</guid>
  </item> 
  <item>
   <title>SaveChangesAsync never returns : Are you trying to save to a table...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6899#6899</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 1799<br /><strong>Posted:</strong> 16-May-2010 at 3:54pm<br /><br />Are you trying to save to a table related to the one you're fetching from? If so, the save won't be able to execute at the server end.<br>Check the Activity Monitor in SQL Server Management Studio and see if your save is locked pending completion of the fetch.<br>I'd guess that it's far more likely to be a SQL Server side lock than a code one.<br><br>]]>
   </description>
   <pubDate>Sun, 16 May 2010 15:54:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6899#6899</guid>
  </item> 
  <item>
   <title>SaveChangesAsync never returns : We think we&amp;#039;ve figured this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6845#6845</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=615" rel="nofollow">RyanBritton</a><br /><strong>Subject:</strong> 1799<br /><strong>Posted:</strong> 11-May-2010 at 12:54am<br /><br />We think we've figured this out. We have an asynchronous call in the background which populates 24,000 Geographic records - if we remove this call then the Async operations return, so it seems that the Entity Manager is tied up with this operation (which shouldn't really be the case in an asynchronous scenario). Any comments/ideas as to how to get around this and why it might be occurring? Is there a thread lock in the IdeaBlade architecture which might be causing this bottleneck?]]>
   </description>
   <pubDate>Tue, 11 May 2010 00:54:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6845#6845</guid>
  </item> 
  <item>
   <title>SaveChangesAsync never returns : Hi Ryan,  Sorry to see that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6842#6842</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> 1799<br /><strong>Posted:</strong> 10-May-2010 at 8:02pm<br /><br /><DIV>Hi Ryan,</DIV><DIV>&nbsp;</DIV><DIV>Sorry to see that you're having problems.&nbsp; SaveChangesAsync is designed to always call the callback.&nbsp; Can you open a support case and submit a test case that shows this?</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 10 May 2010 20:02:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6842#6842</guid>
  </item> 
  <item>
   <title>SaveChangesAsync never returns : Hi,I hope that you can assist...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6831#6831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=615" rel="nofollow">RyanBritton</a><br /><strong>Subject:</strong> 1799<br /><strong>Posted:</strong> 10-May-2010 at 6:27am<br /><br />Hi,<br><br>I hope that you can assist with a very urgent issue:<br><br>In some instances (but not all) our calls to SaveChangesAsync is not returning (ie: a breakpoint on the supplied callback is never hit). Under what conditions will this happen? The only changes that we have made (this was working last week) is a strategy for prepopulating the DevForce cache from the database and persisting the cache to/from a file on startup (so that reference data is not downloaded every time the application runs).<br><br>here is an example of where it is failing (Updated is successfully called and the call to SaveChangesAsync completed successfully but Finished is never called):<br><br>-----------------------------------------------------------------------------------------------------------------------------<br><blockquote>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private void Updated()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (var parcel in this.Parcels)<br>&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; var verifications = parcel.VerifierEngine.Execute(parcel);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.ValidationResults.Clear();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!verifications.AreOk)<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;&nbsp; var errors = string.Empty;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (var error in verifications.Errors)<br>&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; errors += error.Description + Environment.NewLine;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox.Show(errors, "Could not Save", MessageBoxButton.OK);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<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; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.Shipment.Value.GenerateWaybillNumber();<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.Gateway.EntityManager.SaveChangesAsync(this.Finished, null);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br></blockquote><br><blockquote>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private void Finished(EntitySavedEventArgs args)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (args.Error != null || args.Result == null || !args.Result.Ok)<br>&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; throw new Exception("An error occurred while saving the Shipment", args.Error);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&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; DataNotificationService.UpdateShipments();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PopupWindowService.ClosePopUp();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</blockquote>-----------------------------------------------------------------------------------------------------------------------------<br>]]>
   </description>
   <pubDate>Mon, 10 May 2010 06:27:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1799&amp;PID=6831#6831</guid>
  </item> 
 </channel>
</rss>