从MOSS2007升级到SharePoint2010后Report Server content types升级失败
我的一个客户遇到了这样一个问题.
把MOSS2007的content DB挂到SharePoint 2010的场中之后, 发现某站点里的下面几个content type显示不正常. 并且这几个content type导致该站点生成的模板无法被用来创建新的其他站点.
SharePoint 2010 里content type显示为
$Resources:ReportServerContentTypeGroup;
$Resources:DataSourceContentTypeName;
$Resources:ReportBuilderContentTypeName;
$Resources:ReportBuilderModelName;
在MOSS 2007中这几个content type应该显示为下面的样子.
Report Server Content Types
Report Builder Model
Report Builder Report
Report Data Source
尝试去删除这几个content type, 报错: The content type "$Resources:ReportBuilderContentTypeName" is part of an application feature".
经过研究发现这个几个content type是属于几个叫做'ReportServer' 的feature的.
在ULS log中可以发现如下的条目
Content type 0x010100C3676CDFA2F24E1D949A8BF2B06F6B8B in Feature '{e8389ec7-70fd-4179-a1c4-6fcb4342d7a0}' in the current web
{0c6885f1-4a0e-4967-bb92-8a14cf3e540a} was not updated because the OverWrite attribute is FALSE or the content type does not exist in
the current scope. Content type scope is /, current web scope is /.
Content type 0x0101007DFDDF56F8A9492DAA9366B83A95B3A0 in Feature '{e8389ec7-70fd-4179-a1c4-6fcb4342d7a0}' in the current web
{0c6885f1-4a0e-4967-bb92-8a14cf3e540a} was not updated because the OverWrite attribute is FALSE or the content type does not exist in
the current scope. Content type scope is /, current web scope is /.
Content type 0x010100D8704AF8ED734F4088724751E0F2727D in Feature '{e8389ec7-70fd-4179-a1c4-6fcb4342d7a0}' in the current web
{0c6885f1-4a0e-4967-bb92-8a14cf3e540a} was not updated because the OverWrite attribute is FALSE or the content type does not exist in
the current scope. Content type scope is /, current web scope is /.
问题原因
================
这几个content type没有被正确地upgrade
解决方案
================
运行下面的两条power shell命令, 问题解决.
Disable-SPfeature -id reportserver -url http://<servername> –force
Enable-SPfeature -id reportserver -url http://<servername> -force
注意, 从这里我们可以看出, 如果某个feature没有正确地被upgrade, 那么关闭后再开启这个feature可以强制其升级更新.
参考资料
================
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律