Blog链接:​https://blog.51cto.com/u_13637423

今天因给客户做Demo,执行SharePoint 2016/2019 Configuration wizard 配置SharePoint Server 2016和2019 farm环境,再配置SharePoint的时候,抛出异常:

Failed to create the configuration database. An exception of type Microsoft.SharePoint.Upgrade.SPUpgradeException was thrown. Additional exception information: One or more types failed to load. Please refer to the upgrade log for more details.

SharePoint 解决方案:配置SharePoint 2016/2019 Configuration wizard 异常_Configuration Wizard

检查了Log和Event Reviewer,发现如下:

SharePoint 解决方案:配置SharePoint 2016/2019 Configuration wizard 异常_SharePoint 2019_02

SharePoint 解决方案:配置SharePoint 2016/2019 Configuration wizard 异常_Configuration Wizard_03

检查了SQL Server,配置SharePoint Farm的账户是有DB Creater和Security Admin的权限,并且Configure DB和Admin DB已经创建成功了,查了相关资料,发现是安装SharePoint的时候WCF Data Services 5.6 tool 出现了异常,所以需要手动offline的方式部署一下。

解决方案的具体步骤如下所示:

1.      将SharePoint安装文件复制到指定盘符的文件夹

2.      下载WCF Data Services 5.6 tool 到prerequisiteinstallerfiles文件夹下,如下图所示:

SharePoint 解决方案:配置SharePoint 2016/2019 Configuration wizard 异常_SharePoint 2019_04

3.      按照如下命令,手动安装WCF Data Services 5.6,如下所示:

SharePoint 解决方案:配置SharePoint 2016/2019 Configuration wizard 异常_失败_05

4.      我们可以看到WCF Data Services 5.6安装中,如下所示:

SharePoint 解决方案:配置SharePoint 2016/2019 Configuration wizard 异常_SharePoint 2016_06

5.      安装成功后,重启VM,然后再次执行SharePoint 2016/2019 Configuration wizard ,配置成功,如下所示:

SharePoint 解决方案:配置SharePoint 2016/2019 Configuration wizard 异常_SharePoint 2016_07

整理本文,分享给大家,希望能给有需要的小伙伴提供帮助。