【问题标题】:Not able to retract sharepoint solution using SPTool.Library无法使用 SPTool.Library 收回共享点解决方案
【发布时间】:2012-12-17 09:08:59
【问题描述】:

我正在使用 SPTool.Library 并试图收回全局部署的 wsp,但它给了我以下错误: Guid 应包含 32 位数字和 4 个破折号 (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)

代码: SPTReturn returnObj = farm.RetractSolution(wspName);

当我尝试收回部署到 Web 应用程序的 wsp 时,它会毫无问题地收回它。这可能是与全球部署的解决方案相关的问题,还是我遗漏了什么?

【问题讨论】:

    标签: sharepoint sharepoint-2010


    【解决方案1】:

    查看错误消息,RetractSolution 方法似乎需要 解决方案 ID 而不是解决方案名称。它是一个GUID,格式如消息所示。例如,您可以通过 PowerShell cmdlet Get-SPSolutions 将解决方案部署到您的场,包括其 ID。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-02-08
      • 2011-01-10
      • 1970-01-01
      • 2014-06-26
      • 1970-01-01
      • 1970-01-01
      • 2015-10-10
      • 2015-06-18
      相关资源
      最近更新 更多