Answered by:
Can't compile the Async CTP Refresh Sample

Question
-
I can't compile any of the Async CTP samples.
I got this error message whenever I try to compile the sample "Cannot find Task-related types. Are you missing a reference to 'AsyncCtpLibrary.dll' ?"
Somebody, please help me.
Thanks.
Friday, April 15, 2011 2:53 AM
Answers
-
If the samples are not working, something is wrong with the installation. The main reason I saw so far, is because the first CTP was not uninstalled properly. It may require uninstalling SP1 first. You can read more about it in this blog: http://blogs.msdn.com/b/lucian/archive/2011/04/13/async-ctp-refresh-installation.aspx
Avner Aharoni- Marked as answer by JohnHpa Monday, April 18, 2011 10:24 AM
Friday, April 15, 2011 5:35 PMModerator
All replies
-
Sorry for the incomplete question.
Actually the AsyncCtpLibray is in the reference list.
I also had manually removed the reference and added it back, but it doesn't solve the problem.
Thanks.
Friday, April 15, 2011 2:56 AM -
First, fire up one of the sample projects that came with the CTP. If, the sample does not run, uninstall and re-install the CTP. If the sample runs the CTP is installed properly. Manually edit your project project file and change
<Reference Include="AsyncCtpLibrary, Version=1.0.3951.36518, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
to
<Reference Include="AsyncCtpLibrary">
Don't ask me how I knew to do that.
- Proposed as answer by Stephen Toub - MSFTMicrosoft employee, Moderator Friday, April 15, 2011 5:56 AM
Friday, April 15, 2011 4:44 AM -
If the samples are not working, something is wrong with the installation. The main reason I saw so far, is because the first CTP was not uninstalled properly. It may require uninstalling SP1 first. You can read more about it in this blog: http://blogs.msdn.com/b/lucian/archive/2011/04/13/async-ctp-refresh-installation.aspx
Avner Aharoni- Marked as answer by JohnHpa Monday, April 18, 2011 10:24 AM
Friday, April 15, 2011 5:35 PMModerator -
Thanks for your answer.
It's solved now.
I just uninstall the CTP and reinstall it again, as mentioned in this link " http://blogs.msdn.com/b/lucian/archive/2011/04/13/async-ctp-refresh-installation.aspx".
But I didn't need to uninstall the VS2010 SP1.
Thanks.
Monday, April 18, 2011 10:24 AM -
Good to hear! Thanks John.Monday, April 18, 2011 2:42 PM