这是我在构建GuestBook演示时收到的错误。有谁知道会造成什么?我假设安装错误但我无法弄清楚是什么。我也假设它与MSBuild有关。
Error 1 The "DeleteCurrentDeployment" task failed unexpectedly.
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, Boolean& pfNeedsRelease)
at Microsoft.VisualStudio.OLE.Interop.IServiceProvider.QueryService(Guid& guidService, Guid& riid, IntPtr& ppvObject)
at Microsoft.VisualStudio.Shell.ServiceProvider.GetService(Guid guid, Type serviceType)
at Microsoft.VisualStudio.Shell.ServiceProvider.GetService(Type serviceType)
at Microsoft.Cct.IServiceProviderExtensions.GetService[InterfaceType,ServiceType](IServiceProvider serviceProvider)
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(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)
答案 0 :(得分:1)
我在这个网站找到了解决方案
http://consultrikin.wordpress.com/2013/04/11/the-deletecurrentdeployment-task-failed-unexpectedly/
解决方案: 确保已安装Windows Azure的每个组件。 http://www.microsoft.com/en-in/download/details.aspx?id=35448此特定错误表示系统缺少Windows Azure模拟器。
答案 1 :(得分:0)
似乎构建尝试删除现有的azure部署,但是没有这样做。请确保正确安装了当前Azure SDK。
答案 2 :(得分:0)
解决方案
创建FixSourceControlProviderOnWin7x64.reg文件并粘贴以下值:
Windows注册表编辑器版本5.00 [HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ SourceCodeControlProvider] “ProviderRegKey”=“Software \ SourceGear \ Vault Client” [HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ SourceCodeControlProvider \ InstalledSCCProviders] “SourceGear Vault Client”=“Software \ SourceGear \ Vault Client” Windows注册表编辑器版本5.00 [HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ SourceGear] [HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ SourceGear \ Vault Client] “SCCServerName”=“SourceGear Vault客户端” “SCCServerPath”=“C:\ Program Files(x86)\ SourceGear \ Vault Client \ VaultIDE.dll”
运行FixSourceControlProviderOnWin7x64.reg文件。