Thanks for the clarification that
dism /online /disable-feature /featurename:NET-WCF-HTTP-Activation45 /remove
is returning
"Feature unknown". This confirms that the Windows Feature Store (WinSxS) has an incomplete or missing record for this feature. Additionally, the Windows Component Store, which services all feature data, likely has corruption preventing the WCF HTTP Activation functionality from being recognized. Let's escalate fixes to ensure
Windows servicing and
.NET components are fully repaired.
Steps to Resolve "Feature Unknown" for .NET WCF HTTP Activation
Step 1: List Recognizable Features
The first thing is to confirm whether any
.NET Framework
or WCF
features are listed and visible.
- Run the command to list all available and unrecognized features:
Code:
bash
dism /online /get-features /format:table
- Look for anything related to:
NET-Framework-45
NET-WCF-TCP-Activation45
WCF-HTTP-Activation
NET-WCF-Services45
- What to look for:
- If you see no WCF features: The component store likely has missing data.
- If WCF components are grayed/unavailable (e.g.,
Disabled with Payload Removed
): This confirms a corrupted Component Store or missing source files.
Step 2: Reinstall/Repair .NET Framework
Since child features (like WCF HTTP Activation) rely on the parent
.NET Framework
installation, repairing or resetting
.NET Framework 4.8
can resolve the issue.
- Reinstall .NET Framework Core Features:
- Run:
Code:
bash
dism /online /enable-feature /featurename:NetFx4 /all
- This enables .NET Framework 4.8 alongside its foundation features.
- Validate WCF Features After Reinstallation:
- Check feature availability:
Code:
bash
dism /online /get-features /format:table
- Retry Removing WCF HTTP Activation:
Code:
bash
dism /online /disable-feature /featurename:NET-WCF-HTTP-Activation45 /remove
Step 3: Repair the Component Store
If reinstalling
.NET Framework
fails to accurately reflect the feature, repair the
Windows Component Store, which services feature recognition.
- Run DISM RestoreHealth Command (No Source):
Code:
bash
dism /online /cleanup-image /restorehealth
- If DISM Fails to RestoreHealth:
- Mount the Windows Server 2025 ISO (to, say,
D:
).
- Perform a
restorehealth
with a valid source for missing components:
Code:
bash
dism /online /cleanup-image /restorehealth /source:wim:D:\sources\install.wim:1 /limitaccess
- Replace
D:
with the correct drive letter where the ISO is mounted.
Step 4: Reset Orphaned Features in Component Store
Failure to locate the feature sometimes requires manually clearing orphaned or corrupted entries within the Component-Based Servicing database.
- Run Component Cleanup Commands:
- Perform this to clear unnecessary cached components:
Code:
bash
dism /online /cleanup-image /startcomponentcleanup
- Delete Pending CBS or Feature Store Actions:
- Navigate to:
- Delete any file named
pending.xml
, if present:
Code:
bash
del /f /q C:\Windows\WinSxS\pending.xml
- Reboot the server and retry running the
restorehealth
or feature disable command.
Step 5: Rebuild Feature with Manual Files
If the WCF feature remains unrecognized after Component Store repairs, manually provide the missing files using the Windows Server installation ISO.
- Extract the
sxs
Files from the ISO:
- Mount the Windows Server ISO (e.g.,
D:
).
- Copy the files for
NET-WCF-HTTP-Activation45
into a temporary folder:
Code:
bash
xcopy D:\sources\sxs\* C:\Temp\SXS\ /s /e
- Run DISM Against the Extracted Files:
- Add the feature manually using the copied files:
Code:
bash
dism /online /enable-feature /featurename:NetFx4 /all
0
Step 6: Refresh the Windows Feature Repository
If DISM fails repeatedly, resetting the Windows Feature Store (using a complete in-place upgrade) is necessary.
- Mount Windows Server 2025 ISO:
- Open the ISO you’ve used as a source file.
- Perform an In-Place Upgrade Repair:
- Run
setup.exe
from the ISO and select:
- Upgrade this PC.
- Retain files and settings.
- This will reinstall the entire operating system while keeping applications and configurations intact.
- Post-Repair Cleanup:
- Retry
dism /get-features
to confirm WCF features are listed.
- Re-enable or remove
.NET WCF HTTP Activation
as necessary.
Step 7: Examine Logs for Specific Errors
Logs provide detailed reasons why the feature cannot be found.
- DISM Logs:
- Location:
Code:
bash
dism /online /enable-feature /featurename:NetFx4 /all
1
- Look for:
- Missing resource errors such as
source files could not be found
.
- Errors referencing
WCF
or HTTP Activation
.
- CBS Logs (Servicing Issues):
- Location:
Code:
bash
dism /online /enable-feature /featurename:NetFx4 /all
2
- Search for:
0x800f0922
.
0x800f080c
.
- Relevant
.NET WCF feature errors
.
Summary
The
unknown feature issue points to missing or corrupted servicing metadata in the Component Store. Following these troubleshooting steps, we aim to:
- Repair the
.NET Framework
dependencies.
- Restore missing metadata in the Component Store.
- Fix or remove orphaned entries in Windows servicing (CBS).
- Perform a full in-place upgrade if necessary.
Let me know how these steps work or if there are further details in the logs for refinement!