如何将具有自定义母版页的网站集从 SharePoint 2010 迁移到 2013?

How to migrate a site collection with custom Master Page from SharePoint 2010 to 2013?

我正在将我的 SharePoint 网站迁移到 2013。我使用了数据库附加方法。现在我卡在了这个阶段。 我正在单击“立即开始”,但由于与我的站点定义和母版页相关的错误,它没有升级。我尝试在 SharePoint 2013 中转换我的网站定义和母版页,但它也没有多大帮助。我在部署母版页时遇到此错误。

Error occurred in deployment step 'Activate Features': Feature with Id '' is not installed in this farm, and cannot be added to this scope.

是否提供了Feature Id?您是否在 SP 2010 场上安装了当前未安装在 Sp 2013 场上的自定义解决方案?通常,此错误是由于您在旧服务器场中具有功能(解决方案)但未安装在新服务器场中。

另请查看以下 MSDN 分步指南:

Introduction to Upgrade in SharePoint Server 2013

我解决了这个问题。这是我所做的:

  1. 我将所有页面布局转换为 SharePoint 2013。
  2. 之后,我转换了母版页并将页面布局 dll 添加到 GAC 中。
  3. 我使用 power shell 部署了母版页,并将兼容模式设置为 11。

    Install-SPSolution -Identity MasterPage.wsp -GACDeployment -CompatibilityLevel {14,15}

然后激活该功能并上传所需文件。

以这种方式将母版页部署到 Hive 15 中。完成所有这些后,我转到升级屏幕并将我的网站升级到 SharePoint 2013。网站升级成功但仍然存在 CSS 样式中的问题我要解决。