Answered by:
CTP installation problem

Question
-
After I successfully install the CTP, if I try and run any of the samples, the code show this:
private async void searchButton_Click(object sender, RoutedEventArgs e)
{
All of the samples seem to show this problem with async. What reference am I missing?
Thanks
Friday, December 10, 2010 6:57 PM
Answers
-
I encountered the same problem. On Windows 7 Ultimate x64, MS Visual Studio 2010 Ultimate ver 10.0.30319.1 RTMrel,
I've downloaded and installed Async-CTP.exe, with Run as administrator, the setup completed fine, the docs and samples were installed at
C:\Users\[Username]\Documents\Microsoft Visual Studio Async CTP\
but when I compile any sample, the compiler does not recognize the async or await keywords.
I use the en-US version of VS2010, and have only the following updated installed: KB982218, KB0000001, KB2385361.
Anyone from Microsoft that could give a solution?----
LE: It seems that uninstalling all VS2010 updates and ASP.NET MVC RC2 and NuGet, then uninstalling VS Async CTP and re-installing it fixed the problem.
- Edited by Tudor Turcu Saturday, January 8, 2011 3:05 PM fond solution
- Marked as answer by Stephen Toub - MSFTMicrosoft employee, Moderator Saturday, January 8, 2011 6:42 PM
Saturday, January 8, 2011 9:40 AM
All replies
-
Hi Pat,
If you create a new project with async / await keywords, then you must reference AsyncCtpLibrary.dll (or AsyncCtpLibrary_Silverlight.dll for Silverlight project)
But the samples must work correctly.
Can you give use more details?
Bruno
Boucard Bruno - http://blogs.msdn.com/b/devpara/
Sunday, December 19, 2010 2:00 AM -
Hello,
I am also facing the same problem, compiler does not recognize the async and await keywords, and AsncCTpLibrary.dll is properly referenced.
Thanks.
Monday, December 20, 2010 8:47 AM -
Monday, December 20, 2010 12:21 PM
-
I've having the same issue. Installed the CTP, no problem.
Open any of the sample projects and the compiler is not aware of the async and await keywords, so can't compile.
I've using VS.NET 2010 US English version.
Monday, December 20, 2010 7:27 PM -
Hello,
Yes i am using VS 2010 English-Us version.
Asif Mushtaq
Tuesday, December 21, 2010 6:08 AM -
Hi
Are you using Visual Studio 2010 Professional, Premium, or Ultimate?
Bruno
Boucard Bruno - http://blogs.msdn.com/b/devpara/
Sunday, December 26, 2010 7:41 PM -
I've having the same issue. Installed the CTP, no problem.
Open any of the sample projects and the compiler is not aware of the async and await keywords, so can't compile.
I've using VS.NET 2010 Professional .
ceebluntMonday, December 27, 2010 3:32 AM -
Hello,
In Office I have Premium and at home I have Ultimate, but am facing the problem on both.
Asif Mushtaq
Monday, December 27, 2010 10:39 AM -
I'm using VS.NET 2010 Ultimate
http://matlus.comMonday, December 27, 2010 6:05 PM -
For me too Visual Studio doesn't recognize async/await keywords. I'm using Visual Studio 2010 Ultimate ENU on Windows 7 x64. The Async CTP installed with no errors and the sample and documentation are there, but it doesn't seem have changed anything in VS.Tuesday, January 4, 2011 1:19 AM
-
Are you using Resharper? If so I believe you have to disable it.Tuesday, January 4, 2011 7:41 AM
-
I'm not using Reshaper
http://matlus.comTuesday, January 4, 2011 5:48 PM -
I'm not using resharper either. Can someone tell us the steps to check the installation manually to see if anything isn't installed as expected?
Thanks
Tuesday, January 4, 2011 6:18 PM -
I encountered the same problem. On Windows 7 Ultimate x64, MS Visual Studio 2010 Ultimate ver 10.0.30319.1 RTMrel,
I've downloaded and installed Async-CTP.exe, with Run as administrator, the setup completed fine, the docs and samples were installed at
C:\Users\[Username]\Documents\Microsoft Visual Studio Async CTP\
but when I compile any sample, the compiler does not recognize the async or await keywords.
I use the en-US version of VS2010, and have only the following updated installed: KB982218, KB0000001, KB2385361.
Anyone from Microsoft that could give a solution?----
LE: It seems that uninstalling all VS2010 updates and ASP.NET MVC RC2 and NuGet, then uninstalling VS Async CTP and re-installing it fixed the problem.
- Edited by Tudor Turcu Saturday, January 8, 2011 3:05 PM fond solution
- Marked as answer by Stephen Toub - MSFTMicrosoft employee, Moderator Saturday, January 8, 2011 6:42 PM
Saturday, January 8, 2011 9:40 AM -
Please note that the CTP is an update to VS, however unlike supported updates to VS it is not contained in subsequent updates or CTPs.
This means the following:
1) If you want to install new VS updates or other CTPs - you should uninstall the Async CTP first, otherwise there is a good chance that the Async CTP will stop working. For example installing VS 2010 SP1 beta will cause Async CTP to stop working and will put the machine in an inconsistent state where the C# command line compiler is from the Async CTP but the C# compiler used in VS is from the SP1 Beta.
2) If you installed updates/CTPs that are newer than the Async CTP you cannot install the Async CTP on that machine. The install will probably succeed but some or all of the VS components will not be updated (since they will be newer). For example, installing the Async CTP after you installed MVC 3 RC will not work, since MVC 3 RC updates the same components that the Async CTP updates.
We will ship a refresh of the Async CTP that will work on top of SP1, with the release of the final version of SP1.
Hope this helps.
Avner
Thursday, January 13, 2011 6:21 AMModerator -
Hi,
thanks to clearify that, is there a release date for shipping SP1?
With best regards
GerhardFriday, February 18, 2011 10:42 AM -
Visual Studio 2010 SP1 was released yesterday, see http://visualstudiomagazine.com/articles/2011/03/08/vs2010-sp1.aspx
We are now working on providing Async CTP that will run on top of SP1, but it will take us more time to get it ready, we still don't have a final date for it.
Avner
Wednesday, March 9, 2011 4:30 PMModerator -
Any news on when Async will be supported on SP1?Monday, March 14, 2011 1:28 PM
-
We currently estimate that it will take us around a month (i.e. middle of April) to complete the different activities needed to release the CTP refresh for SP1.
Avner
- Proposed as answer by macthestack Wednesday, March 16, 2011 5:01 PM
Monday, March 14, 2011 5:23 PMModerator -
Thanks Avner, just the kind answer I was hoping for.
Martin
Wednesday, March 16, 2011 5:01 PM -
Btw, does Async CTP work with ASP .NET applications or does it only work Silverlight?
Thanks.
Thursday, April 7, 2011 8:21 PM -
Yes, you can find a sample called ASP.Net in the CTP.
Avner AharoniFriday, April 8, 2011 6:45 AMModerator -
Yes, you can find a sample called ASP.Net in the CTP.
Avner Aharoni
Hi Avner,For example, can I trigger a CTP Async Task via a button/link click and have that action happen without causing the page to postback or flicker similar to making the call asynchronous via a Jquery AJAX call? I'm having trouble running the ASP.NET sample, is there, a live demo site where I can see live demos of how this works?
Thank you.
Friday, April 8, 2011 6:04 PM