【问题标题】:Windows Azure Training Kit Guestbook Demo get error when buildingWindows Azure 培训工具包留言簿演示在构建时出错
【发布时间】:2011-01-26 20:42:53
【问题描述】:

这是我在构建留言簿演示时收到的错误。有谁知道是什么原因造成的?我假设有些东西安装错了,但我不知道是什么。我还假设它与 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)

【问题讨论】:

    标签: visual-studio-2010 msbuild build azure


    【解决方案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 模拟器。

    【讨论】:

      【解决方案2】:

      似乎构建尝试删除现有的 azure 部署,但这样做失败。请确保当前的Azure SDK 安装正确。

      【讨论】:

      • 我已经卸载了 VS2010 并与 SDKs v1 和 v2 一起重新安装。
      【解决方案3】:

      http://rduclos.wordpress.com/2011/02/25/the-deletecurrentdeployment-task-failed-unexpectedly-and-ie8-tab-hang/

      解决方案

      1. 在“C:\Program Files (x86)\SourceGear\Vault Client”中安装 SourceGear Vault 客户端 v3.1.9

      2. 将文件夹“C:\Program Files (x86)\SourceGear\Vault Client”中的所有文件和文件夹备份到备份文件夹“C:\Program Files (x86)\SourceGear\Vault Client Backup”

      3. 卸载 SourceGear Vault 客户端 v3.1.9

      4. 将所有文件和文件夹从“C:\Program Files (x86)\SourceGear\Vault Client Backup”恢复到“C:\Program Files (x86)\SourceGear\Vault Client”

      5. 创建一个 FixSourceControlProviderOnWin7x64.reg 文件并粘贴以下值:

        Windows 注册表编辑器版本 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SourceCodeControlProvider] "ProviderRegKey"="软件\SourceGear\Vault 客户端" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SourceCodeControlProvider\InstalledSCCProviders] "SourceGear Vault 客户端"="软件\SourceGear\Vault 客户端" Windows 注册表编辑器版本 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SourceGear] [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SourceGear\Vault 客户端] "SCCServerName"="SourceGear Vault 客户端" "SCCServerPath"="C:\Program Files (x86)\SourceGear\Vault Client\VaultIDE.dll"

      6. 运行 FixSourceControlProviderOnWin7x64.reg 文件。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-09-24
        相关资源
        最近更新 更多