Error occurred in deployment step 'Activate Features': Feature with Id '{GUID}' is not installed in ...

笔者最近在做一个SharePoint 2010 的开发的小东西. 在VS2010里遇到了标题中的那个错误. 查了些资料(已经列在了下面), 却都没有解决我的问题.

经过一番研究, 搞清楚了问题的原因和解决方法.

 

在有多台服务器的SharePoint 2010场环境中, VS2010里编译成功后, 在project上点击右键后选Deploy, 就会报这个错误. 笔者选的是Farm Solution, 不是Sandbox Solution.

解决方法是, 在VS2010里让你的project 编译通过, 然后选择Package. 在Bin目录下找到生成的wsp文件, 上传到管理中心的solution gallery中. 在管理中心里部署solution. 就可以成功了.

 

在上传wsp到管理中心的过程中, 需要用到一个powershell命令.

add-spsolution –literalpath “d:\temp\myspsproj.wsp”

 

可能一般开发人员不会在有多台服务器的场中直接部署solution吧, anyway, 希望这篇文章对你有帮助.

呵呵, 笔者祝你开发SharePoint愉快.

 

参考资料

====================

SharePoint 2010 projects with field elements cannot be redeployed

http://support.microsoft.com/kb/2022443 

Error occurred in deployment of step ‘Activate Features’: the field with ID defined in feature was found in the current site collection or in a sub site.

http://blogs.msdn.com/b/yardman/archive/2010/07/27/error-occurred-in-deployment-of-step-activate-features-the-field-with-id-defined-in-feature-was-found-in-the-current-site-collection-or-in-a-sub-site.aspx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值