Business Central 配置错误排查

1. 安装 Web Server Components失败

去到C:\Users\<用户名>\AppData\Local\Temp这个路径下找Log

找到对应的错误后尝试进行修复,好的,这边显示我当前的windows家庭版不支持IIS-WindowsAuthentication。。

接着在网上找了方法:window10家庭版解决IIS中万维网服务的安全性中无Windows身份验证

勾选后继续安装Business Central!

2. SQL Server未开启TCP/IP连接、未启动、登录权限问题、网络配置问题

打开SQL Server Configuration Manager,并开启TCP/IP并重启SQLServer服务

3. 安装时发生严重错误

点击Open installation log 打开日志,逐步进行排查

Bash
=== Logging started: 2025/07/06 12:28:05 ===
Executable: D:\BrowerDownload\Dynamics.365.BC.36321.W1.DVD\setup.exe v26.0.36290.0
Computer  : ADMIN
--- logging level: standard ---
RegistrySearch: Id = 'PS7VInstalled', checking registry key existence. 
                Id = 'PS7VInstalled', Key = 'SOFTWARE\Microsoft\PowerShellCore\InstalledVersions\31ab5147-9a97-4452-8443-d9709f0516e1', Exists = '0'
RegistrySearch: Id = 'SqlServerInstalled', checking registry key existence. 
                Id = 'SqlServerInstalled', Key = 'SYSTEM\CurrentControlSet\Services\', Exists = '1'
RegistrySearch: Id = 'DotNetFxRelease', searching for registry key value. 
                Id = 'DotNetFxRelease', Key = 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', Value = '533320'
RegistrySearch: Id = 'PowerShell30Installed', searching for registry key value. 
                Id = 'PowerShell30Installed', Key = 'SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine', Value = '5.1.26100.1882'
RegistrySearch: Id = 'WindowsSearchInstalled', checking registry key existence. 
                Id = 'WindowsSearchInstalled', Key = 'SYSTEM\CurrentControlSet\Services\WSearch', Exists = '1'
RegistrySearch: Id = 'VCPPSpLevel', searching for registry key value. 
                Id = 'VCPPSpLevel', Registry key not found. Key = 'SOFTWARE\Microsoft\DevDiv\VC\Servicing\12.0'
RegistrySearch: Id = 'VCPPInstalled', checking registry key existence. 
                Id = 'VCPPInstalled', Key = 'SOFTWARE\Microsoft\DevDiv\VC\Servicing\12.0', Exists = '0'
RegistrySearch: Id = 'VCPP64Installed', checking registry key existence. 
                Id = 'VCPP64Installed', Key = 'SOFTWARE\Microsoft\DevDiv\VC\Servicing\12.0', Exists = '1'
RegistrySearch: Id = 'VCPP201764Installed', searching for registry key value. 
                Id = 'VCPP201764Installed', Key = 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64', Value = '1'
RegistrySearch: Id = 'VCPP201764VersionMajor', searching for registry key value. 
                Id = 'VCPP201764VersionMajor', Key = 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64', Value = '14'
RegistrySearch: Id = 'VCPP201764VersionMinor', searching for registry key value. 
                Id = 'VCPP201764VersionMinor', Key = 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64', Value = '40'
RegistrySearch: Id = 'VCPP201764VersionBld', searching for registry key value. 
                Id = 'VCPP201764VersionBld', Key = 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64', Value = '33810'
RegistrySearch: Id = 'IISInstalled', checking registry key existence. 
                Id = 'IISInstalled', Key = 'SOFTWARE\Microsoft\InetStp', Exists = '0'
RegistrySearch: Id = 'IISWinAuthInstalled', searching for registry key value. 
                Id = 'IISWinAuthInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\InetStp\Components'
RegistrySearch: Id = 'IISASPNETInstalled', searching for registry key value. 
                Id = 'IISASPNETInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\InetStp\Components'
RegistrySearch: Id = 'IISASPNET45Installed', searching for registry key value. 
                Id = 'IISASPNET45Installed', Registry key not found. Key = 'SOFTWARE\Microsoft\InetStp\Components'
RegistrySearch: Id = 'IISNETFXInstalled', searching for registry key value. 
                Id = 'IISNETFXInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\InetStp\Components'
RegistrySearch: Id = 'IISNETFX45Installed', searching for registry key value. 
                Id = 'IISNETFX45Installed', Registry key not found. Key = 'SOFTWARE\Microsoft\InetStp\Components'
RegistrySearch: Id = 'IISISAPEXInstalled', searching for registry key value. 
                Id = 'IISISAPEXInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\InetStp\Components'
RegistrySearch: Id = 'HttpActivationInstalled', checking registry key existence. 
                Id = 'HttpActivationInstalled', Key = 'SYSTEM\CurrentControlSet\Services\WAS', Exists = '0'
RegistrySearch: Id = 'IISISAPIFIInstalled', searching for registry key value. 
                Id = 'IISISAPIFIInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\InetStp\Components'
RegistrySearch: Id = 'IISREQSTFIInstalled', searching for registry key value. 
                Id = 'IISREQSTFIInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\InetStp\Components'
RegistrySearch: Id = 'IISSTATICInstalled', searching for registry key value. 
                Id = 'IISSTATICInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\InetStp\Components'
RegistrySearch: Id = 'WebComponentsPrerequisitesInstalled', searching for registry key value. 
                Id = 'WebComponentsPrerequisitesInstalled', Registry key not found. Key = 'SOFTWARE\Microsoft\Microsoft Dynamics NAV\260\Web Components Prerequisites'
Configuring package. Id = 'ARP'
MSI log file set to: C:\Users\ichis\AppData\Local\Temp\setup.wix.msi.4.log
Done configuring package. Id = 'ARP' ReturnCode = 0
Configuring package. Id = 'ReportBuilder'
MSI log file set to: C:\Users\ichis\AppData\Local\Temp\setup.wix.msi.5.log
Done configuring package. Id = 'ReportBuilder' ReturnCode = 0
Configuring package. Id = 'DotNetCore'
Path to executable = 'D:\BrowerDownload\Dynamics.365.BC.36321.W1.DVD\Prerequisite Components\DotNetCore\dotnetcore-windowshosting.exe', Arguments = '/quiet /install /norestart'
Done configuring package. Id = 'DotNetCore' ReturnCode = 0
Configuring package. Id = 'WebClientDependency'
Path to executable = 'D:\BrowerDownload\Dynamics.365.BC.36321.W1.DVD\WebClientDependencyInstaller.exe', Arguments = '/install'
Done configuring package. Id = 'WebClientDependency' ReturnCode = 0
Configuring package. Id = 'PowerShell7'
MSI log file set to: C:\Users\ichis\AppData\Local\Temp\setup.wix.msi.6.log
Done configuring package. Id = 'PowerShell7' ReturnCode = 0
Configuring package. Id = 'DevelopmentEnvironment'
MSI log file set to: C:\Users\ichis\AppData\Local\Temp\setup.wix.msi.7.log
Done configuring package. Id = 'DevelopmentEnvironment' ReturnCode = 0
Configuring package. Id = 'ServiceTier'
MSI log file set to: C:\Users\ichis\AppData\Local\Temp\setup.wix.msi.8.log
Done configuring package. Id = 'ServiceTier' ReturnCode = 0
Configuring package. Id = 'WebClient'
MSI log file set to: C:\Users\ichis\AppData\Local\Temp\setup.wix.msi.9.log
Done configuring package. Id = 'WebClient' ReturnCode = 1603
SUCCESS: Package Microsoft Dynamics 365 Business Central Setup Components executed sucessfully.
SUCCESS: Package Microsoft Power BI Report Builder executed sucessfully.
SUCCESS: Package Microsoft .NET Core Windows Server Hosting executed sucessfully.
SUCCESS: Package IIS prerequisites for Web Server Components executed sucessfully.
SUCCESS: Package PowerShell 7 for the commandlets executed sucessfully.
SUCCESS: Package Microsoft Dynamics 365 Business Central AL Development Environment executed sucessfully.
SUCCESS: Package Microsoft Dynamics 365 Business Central Server Components executed sucessfully.
ERROR: Package Web Server Components failed with error. See detailed message above.
=== Logging stopped: 2025/07/06 12:33:00 ===

从日志内容可以看出IIS并未安装错误码1603,于是将IIS安装后,重新使用管理员身份再次执行修复程序,好的,还是报错。

继续排查将PowerShell更新到最新版本,防止无法执行修复指令!

具体内容为错误响应码3010和1603,这里我们先重启下电脑解决掉3010再继续尝试

这里打开MSI Log,查看更为详细的日志并得出错误由CreateWebApplicationCore自定义操作引起,执行PowerShell脚本发生错误

于是我们尝试手动运行PowerShell脚本,发现无法正常执行需要更改执行策略:

更改完成后继续尝试手动运行脚本,接着发现并没有安装.NET Framework运行时安装成功后继续排查

额,最终我将.NET Windows Server Hosting 修复了一遍并手动安装了 Visual C++ Redistributable

终于成功了!

订阅评论
提醒
0 评论
最旧
最新 最多投票
内联反馈
查看所有评论
滚动至顶部