The “DeleteCurrentDeployment” task failed unexpectedly.

When deploying site from Visual Studio to Windows Azure, below error occurs:

The “DeleteCurrentDeployment” task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly ‘Microsoft.ServiceHosting.Tools, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))
File name: ‘Microsoft.ServiceHosting.Tools, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ —> System.ArgumentNullException: Value cannot be null.
Parameter name: path1
   at System.IO.Path.Combine(String path1, String path2)
   at Microsoft.Cct.AssemblyResolver.CurrentDomainAssemblyResolver(Object sender, ResolveEventArgs args)
   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
   at Microsoft.Cct.Debugging.DevFabricService..ctor(CctProjectNode projectManager, SynchronizationContext synchContext)
   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()

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure Tools\1.8\Microsoft.WindowsAzure.targets    1139    5

Make sure you have installed every component for Windows Azure. This particular error says that the system is missing Windows Azure Emulator.


2 thoughts on “The “DeleteCurrentDeployment” task failed unexpectedly.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s