Fix error The tool was unable to install the Web Server (IIS) Role during SharePoint 2019 Setup


You receive error "The tool was unable to install the Web Server (IIS) Role" message when installing SharePoint 2019 prerequisites. Before starting with the actual setup, there are a bunch of pre-requisites which are required.

SharePoint 2019 installation Web Servr IIS Role error.png
SharePoint 2019 installation Web Servr IIS Role error


This may happen if the Windows server on which SharePoint installation is going on, is not connected to the internet. In such case, the tool may not be able to download the required prerequisites before initiating the installation. Ensure that the server is connected to the network and internet is available.

How to fix ?

  1. Connect the server to internet and retry installation.
  2. If problem is not resolved, use ISO file or DVD to install the prerequisites.
  3. Use PowerShell command Install-WindowsFeature to install required features offline.
  4. Import-Module Servermanager

    Install-WindowsFeature NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-Pipe-Activation45,NET-WCF-HTTP-Activation45,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Asp-Net45,Web-Net-Ext,Web-Net-Ext45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Windows-Identity-Foundation,Xps-Viewer -IncludeManagementTools -verbose - Source F:\sources\sxs

  5. Reboot Server and use wizard for installation.

List prerequisites for SharePoint 2019

  1. Web Server (IIS) role
  2. Windows Process Activation Service feature
  3. Microsoft .NET Framework version 3.5
  4. Microsoft .NET Framework version 4.7.2
  5. Microsoft SQL Server 2012 Service Pack 4 Native Client
  6. Microsoft WCF Data Services 5.6
  7. Microsoft Identity Extensions
  8. Microsoft Information Protection and Control Client 2.1 (MSIPC)
  9. Microsoft Sync Framework Runtime v1.0 SP1 (x64)
  10. Windows Server AppFabric 1.1
  11. Cumulative Update Package 7 for Microsoft AppFabric 1.1 for Windows Server (KB 3092423)
  12. Visual C++ Redistributable Package for Visual Studio 2012
  13. Visual C++ Redistributable Package for Visual Studio 2017
Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap