Hi,sorry for the delayed response.
I copy-pasted your code into my sample ClickOnce application and it works just fine. UpdateAsync() downloads the new version of the application for me. I'm unable to repro the problem you're seeing.
Other thancommenting out the splashscreen code and replacing with message boxes I used your code as is. There aren't any known issues that would cause UpdateAsync() to hang completely, you really should be able to use it as you've described above.
Here are few possible things to check on:
- The one thing that would slow things down is if connection to server is down or slow, but then the sync version of the API should not have worked for you either. Can you confirm that both sync and async tests were done against some server.
- This is unlikely but theUpdateAsync() follows the regular .NET async programming model. I'm wondering if there's something wrong on your machine with async events in general. Can you try replacing UpdateAsync with another async method such as WebClient.DownloadFileAsync and see if that works for you in sample above.
- Comment out the splashscreen code on your end to see if that's causing a problem.
Let us know what you get and we can take it further from there.
Regards,
Sameer