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


Problem

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

Reason

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





Recent Posts:
Hello there!,

You are using AdBlocker!

I am an independent developer trying to help fellow developers and students to resolve issues faced on a day-to-day basis, we 'Code to Care' . There is a lot of expenses involved in hosting and managing a website that's the reason we have ads.

A humble request to you to disable adBlocker on Code2care.org and support us pay our bills.

Thanks,
Cod2ecare - Line's of code for change.

To see contents reload page after unblocking
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.