Web Server (IIS) Role: configuration error - SharePoint 2016

tamilarasan l 21 Reputation points
2022-07-18T14:24:22.68+00:00

Hi There,

I was trying to install the SharePoint 2016 in one of my Windows Server 2019. After running the Prerequisiteinstaller application file, it resulted with the "Web Server (IIS) Role: configuration error". I tried install .Net framework modules but it resulted with an error.

Please help to tell me, how to resolve and IIS configuration error.

Thanks & Regards,

Tamil

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,964 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xuyan Ding - MSFT 7,581 Reputation points
    2022-07-19T09:54:01.407+00:00

    Hi @tamilarasan l ,

    1.The tool may not be able to download the required prerequisites before starting the installation. Make sure the server is connected to the network and the Internet is available. Connect the server to the internet and retry the installation.

    2.Check if Windows Update Service is disabled, try to enable it and then configure IIS.

    3.Use the PowerShell command Install-WindowsFeature to install the desired feature offline. Please go to the command line with administrator privileges and execute the following cdmlets, where "D:\sources\sxs" is replaced with the actual path of the source file. The source file is on your Windows Server 2019 installation media and you need to specify it for the prerequisite installation to work. Restart the server and use the wizard to install.

     Import-Module ServerManager  
     Add-WindowsFeature Net-Framework-Features,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-Net-Ext,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-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer –Source D:\sources\sxs  
    

    Remind: If you get an error during installation, you need to run it one by one to determine which function it fails on. This could happen for a number of reasons, and you might be able to share the error message. For example, if the error is returned: 0x80073701, it may be caused by the language pack, etc.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.