The "DeleteCurrentDeployment" task failed unexpectedly - Error solved

Hey folks, sharing a quick solution on a strange issue which I faced today.

I was having both Azure SDK installed on my machine i..e SDK version 2.2 and 2.3, I went ahead and uninstalled all components in SDK 2.3 and tried building my one of azure project which was based on SDK 2.2

Here was the issue I was facing after cleaning and building solution using Visual Studio 2013

The "DeleteCurrentDeployment" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ServiceHosting.Tools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ServiceHosting.Tools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at Microsoft.Cct.Debugging.DevFabricService..ctor()
at Microsoft.Cct.CctProjectNode.<get_DevFabricService>b__14()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Func`1 valueFactory)
at System.Threading.LazyInitializer.EnsureInitialized[T](T& target, Func`1 valueFactory)
at Microsoft.Cct.CctProjectNode.get_DevFabricService()
at Microsoft.Cct.CctBuildDeploymentTaskHost.DeleteCurrentDeployment()
at Microsoft.CloudExtensions.MSBuildTasks.DeleteCurrentDeployment.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()


Solution:

Re-install the Azure emulator using Azure SDK 2.2 and hurray!! the error is gone.
Ebook Download
View all
Learn
View all