SharePoint 2010 bug

1:SharePoint项目刚好在一个solution folder(VS中的解决方案文件夹)里面,新建list definition(列表定义)时找不到自定义的内容类型

步骤重现,先定义一个content type,用vs2010 deploy上去。在新建list definition,选择模版list definition from content type,进入下一步,结果找不到我刚才的自定义content type。郁闷了几个小时,找遍微软的帮助。最终解决方案是,把project拖到solution根目录下就可以了。由于我的project是在一个 solution folder下面。这真是管用的奇淫技巧,微软太忽悠我们了

2: 部署内容类型(Content Type)的问题

1)   Error occurred in deployment step Activate Features” The content type with Id ‘xx’ defined in feature ‘yy’ was found in the current site collection or in a subsite.

解决方案:http://blog.hagenberg-software.at/2010/06/visual-studio-2010-deploying-content-types-and-site-columns/?replytocom=2703#respond

 把deployment步骤改为不激活,手工激活

2)   Error occurred in deployment step 'Activate Features': The field with Id {a6a841d7-4067-4519-b794-e25ac438e9cf} defined in feature {a6192d76-512f-48de-9284-251b49902345} was found in the current site collection or in a subsite.

解决方案:http://blogs.msdn.com/b/chandru/archive/2010/09/06/visual-studio-2010-f5-solution-deployment.aspx

 步骤如下,主要是杀掉vssphost4进程,强迫其开启一个新的

1. F5 (Deploy the solution)

2. Shift +F5 (Retract the solution)

3. Again F5.  This time it will fail.

4. Open the task manager and kill VSSPHost4 process.

5. Now F5 and the solution gets deployed successfully.

 

 

转载于:https://www.cnblogs.com/PeterWang/archive/2010/11/23/1885690.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值