sharepoint 2013 部署步骤“添加解决方案”中出现错误: 已在此服务器场中安装 ID 为{guid}的功能。请使用强制属性显式地重新安装此功能。

来源:互联网 发布:indesign cc软件下载 编辑:程序博客网 时间:2024/06/07 19:56

在部署sharepoint 2013解决方案wsp包时,出现一个错误:

部署步骤“添加解决方案”中出现错误: 已在此服务器场中安装 ID 为 735efe4e-8b50-4310-b588-c6ae2ba0759f 的功能。请使用强制属性显式地重新安装此功能。

英文报错如下:

Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been installed in this farm.  Use the force attribute to explicitly re-install the feature.

 

解决方法是,在feature的xml 文件中,添加一个属性 AlwaysForceInstall="TRUE",再重新部署后,发现已经部署成功。

<Feature xmlns="http://schemas.microsoft.com/sharepoint/" AlwaysForceInstall="TRUE">
</Feature>

1 0