<?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 : Async Deadlock (ASP/WPF)</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Async Deadlock (ASP/WPF)</description>
  <pubDate>Fri, 10 Apr 2026 19:41:50 -700</pubDate>
  <lastBuildDate>Tue, 21 Jan 2014 00:37:24 -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=4638</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>Async Deadlock (ASP/WPF) : I am having the problem that the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4638&amp;PID=17330#17330</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1275" rel="nofollow">Engo</a><br /><strong>Subject:</strong> 4638<br /><strong>Posted:</strong> 21-Jan-2014 at 12:37am<br /><br />I am having the problem that the following code is producing a deadlock:<div><br></div><div><div>public async Task Test()</div><div>{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var man = new EntityManager();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var result = await (man.GetQuery&lt;OrderEntity&gt;().ExecuteAsync()).ConfigureAwait(false);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>}</div></div><div><br></div><div>// calling this method by using:</div><div>Test().Wait();</div><div><br></div><div>When I test this method by using Task.Delay(1000) I get the expected deadlock and by using&nbsp;<span style="line-height: 1.4;">Task.Delay(1000).ConfigureAwait(false) it works fine. It seems that ConfigureAwait does not work as expected when executing queries.</span></div>]]>
   </description>
   <pubDate>Tue, 21 Jan 2014 00:37:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4638&amp;PID=17330#17330</guid>
  </item> 
 </channel>
</rss>