Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Async CTP: Fixing the Installation Problem

DZone's Guide to

Async CTP: Fixing the Installation Problem

· Mobile Zone
Free Resource

Discover how to focus on operators for Reactive Programming and how they are essential to react to data in your application.  Brought to you in partnership with Wakanda

I wasn’t aware that the Async CTP worked with Windows Phone 7 until I read this good introduction by Kevin Ashley.  It’s not just the await and async –keywords which got me excited, it’s the thought of using TPL with WP7.

Unfortunately getting the CTP 3 to install wasn’t an easy task. First time everything seemed to go alright, except I couldn’t find the samples or DLLs from anywhere. Turns out this is a common problem and it is caused by the Silverlight 5 and some Visual Studio Hotfixes. 

Here are the steps I had to take in order to get the Async CTP installed:

  1. Removed Silverlight 5 SDK through Programs and Features
  2. Removed the following updates through Programs and Features / Installed Updates:

    1. KB2615527
    2. KB2635973
    3. KB2549864


All of these can be reinstalled after Async CTP has been installed.

After going through the steps described above, Async with WP7 is a go:

private async void ButtonClick(object sender, RoutedEventArgs e)
{
    Debug.WriteLine(await GetWebpage());
}
 
private async Task<string> GetWebpage()
{
    return await new WebClient().DownloadStringTaskAsync(new Uri("http://www.bing.com"));
}


Source: http://mikaelkoskinen.net/post/async-ctp-fix-installation-problem.aspx

Learn how divergent branches can appear in your repository and how to better understand why they are called “branches".  Brought to you in partnership with Wakanda

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}