I am building a website on Windows Azure (which is free, and a great offering) with Visual Studio 2010. The site is developed in MVC4 on .NET 4.0 and I am using Web Deploy in VS to publish this website from VS to Azure.
Things were smooth, but I suddenly started getting a problem with the deployment.
The error stated:
Web deployment task failed. (Could not complete the request to remote agent URL ‘https://waws-prod-blu-001.publish.azurewebsites.windows.net/msdeploy.axd?site=xxx.)
Could not complete the request to remote agent URL ‘https://waws-prod-blu-001.publish.azurewebsites.windows.net/msdeploy.axd?site=xxx’.
The request was aborted: The request was canceled.
COM object that has been separated from its underlying RCW cannot be used.
This is a very cryptic message and I did all kinds of things to resolve it.
Even searching for this was not too fruitful.
The answer was to restart Visual Studio and things started working again…like magic.
My hypothesis is that the connection was terminated somehow, and this was cached, so Web deploy kept giving this error. This is just a guess and I have n o idea how it works, but hopefully this post helps you from losing your mind..