Error: 0x80073701 - Can't Install "IP and Domain Restrictions" IIS - Windows Server 2019

iSudo 1 Reputation point
2022-04-01T19:37:15.413+00:00

Greetings,

Subject:
Error: 0x80073701 - Can't Install "IP and Domain Restrictions" IIS - Windows Server 2019

Environments:
Windows Server 2019

Issue:
I am trying to install

Screenshot:
189210-image.png

189264-image.png

Note: I tried to use both GUI Server Manager and PowerShell, same issue.

PS C:\Users\Administrator> Install-WindowsFeature Web-IP-Security  
Install-WindowsFeature : The request to add or remove features on the specified server failed.  
Installation of one or more roles, role services, or features failed.  
The referenced assembly could not be found. Error: 0x80073701  
At line:1 char:1  
+ Install-WindowsFeature Web-IP-Security  
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],  
    Exception  
    + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind  
   owsFeatureCommand  
  
Success Restart Needed Exit Code      Feature Result  
------- -------------- ---------      --------------  
False   No             Failed         {}  

Note: Some other roles can be installed without issues, and some with the same issue above.

Note: From the log, filtering using the error code:

C:\Windows\Logs\CBS  

Found many errors:

	Line 44751: 2022-04-01 15:30:03, Info                  CBS    Failed to FinalizeEx using worker session [HRESULT = 0x80073701]  
	Line 55057: 2022-04-01 15:34:18, Error                 CSI    0000000a (F) HRESULT_FROM_WIN32(ERROR_SXS_ASSEMBLY_MISSING) #937241# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_PinDeployment(Flags = 0, a = a37ffc23504c050e2d711089955af93e, version 10.0.17763.771, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35}, cb = (null), s = (null), rid = 'Package_3253_for_KB4565349~31bf3856ad364e35~amd64~~10.0.1.5.4565349-5755_neutral', rah = (null), manpath = (null), catpath = (null), ed = 0, disp = 0)[gle=0x80073701]  
	Line 55058: 2022-04-01 15:34:18, Info                  CBS    Failed to pin deployment while resolving Update: Package_3253_for_KB4565349~31bf3856ad364e35~amd64~~10.0.1.5.4565349-5755_neutral from file: (null) [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]  
	Line 55059: 2022-04-01 15:34:18, Info                  CBS    Failed to bulk stage deployment manifest and pin deployment for package:Package_224_for_KB5011551~31bf3856ad364e35~amd64~~10.0.1.6 [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]  
	Line 55064: 2022-04-01 15:34:18, Info                  CBS    Failed to resolve execution chain. [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]  
	Line 55065: 2022-04-01 15:34:18, Error                 CBS    Failed to process single phase execution. [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]  
	Line 55066: 2022-04-01 15:34:18, Info                  CBS    WER: Generating failure report for package: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.17763.1, status: 0x80073701, failure source: Resolve, start state: Installed, target state: Installed, client id: DISM Package Manager Provider  
	Line 55084: 2022-04-01 15:34:18, Info                  CBS    Exec: Processing complete.  Session: 30950911_1999217240, Package: Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.17763.1, Identifier: Windows Foundation [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]  
	Line 55085: 2022-04-01 15:34:18, Error                 CBS    Failed to perform operation.  [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]  
	Line 55086: 2022-04-01 15:34:18, Info                  CBS    Session: 30950911_1999217240 finalized. Reboot required: no [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]  
	Line 55087: 2022-04-01 15:34:18, Info                  CBS    Failed to FinalizeEx using worker session [HRESULT = 0x80073701]  

Help would be appreciated.

Thanks.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,549 questions
Internet Information Services
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,418 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,457 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,435 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Lt. Columbo 316 Reputation points
    2022-09-26T09:36:05.86+00:00

    I had the same issue with installing IIS on a Windows Server 2019 Standard.

    244696-w2019-assembly-error-01-copy.jpg

    First, I run dism /online /cleanup-image /startcomponentcleanup command.

    244695-w2019-assembly-error-02.jpg

    Second, I run dism /online /cleanup-image /restorehealth command.

    244689-w2019-assembly-error-03.jpg

    Both commands didn't help.
    Then in the %windir%\logs\cbs I opened cbs.log and searched for "error" and found these entries:
    2022-09-23 19:02:48, Info CBS Failed to pin deployment while resolving Update: Package_1192_for_KB5006744~31bf3856ad364e35~amd64~~10.0.1.9.5006744-2298_neutral from file: (null) [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]
    2022-09-23 19:02:48, Info CBS Failed to bulk stage deployment manifest and pin deployment for package:Microsoft-Windows-IIS-WebServer-Server-Features-Package~31bf3856ad364e35~amd64~en-US~10.0.17763.1 [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]

    I downloaded KB5006744 (windows10.0-kb5006744-x64_6032f22dd75a7fc3b8497896f656fc65ac7ea2a8.msu).
    Then I extracted files with expand -F:* C:\IT\windows10.0-kb5006744-x64_6032f22dd75a7fc3b8497896f656fc65ac7ea2a8 c:\it\cab command.
    Then I run dism /online /add-package /packagepath:c:\it\cab\Windows10.0-KB5006744-x64.cab command.

    244744-w2019-assembly-error-04.jpg

    Finally, successfully installed IIS.

    I hope it will be helpful for someone.

    3 people found this answer helpful.

  2. Rich Matheisen 45,431 Reputation points
    2022-04-01T19:54:08.713+00:00

    Not really a PowerShell problem. A quick search turns up lots of hits on your problem, but the one cause that seems to turn up most frequently is one of the installed language(s) on the machine: solved-windows-feature-installation-the-referenced-assembly-could-not-be-found-error-0x80073701

    1 person found this answer helpful.

  3. Sam Wu-MSFT 7,136 Reputation points Microsoft Vendor
    2022-04-04T02:20:55.047+00:00

    @iSudo

    The error 0x80073701 is error_sxs_assembly_missing, which means that there are some system files are missing, leading to the Windows update installation failure. you can tryn to run the DISM tool to fix the corrupted system files.

    1: Open Command Prompt

    Open the Command Prompt and run it as administrator. For detailed ways, please refer to the first solution listed above.

    2: Type the command

    In the pop-up window, type the command DISM /Online /Cleanup-Image /RestoreHealth and hit Enter to continue. Also, you can use the command - DISM /Online /Cleanup-Image /Startcomponentcleanup.

    Next, restart your computer to take effect and check whether the Windows update 0x80073701 error is solved.


    If the answer is the right solution, 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.


  4. Sam Fernandez 1 Reputation point
    2023-01-10T13:21:16.907+00:00

    Hi iSudo-5699,

    Does your server is fully updated with all latest Windows Auto Updates ? if not then I would suggest you to first install all pending auto updates and then try again

    Regards, Sam https://www.storminternet.co.uk/

    0 comments No comments