system.servicemodel.washosting.dll Error in Windows 10 and 11: WCF feature hosting in Windows

An authorized IIS or local developer host fails when opening a WCF endpoint and a diagnostic names system.servicemodel.washosting.dll.
The Windows file inventory identifies system.servicemodel.washosting.dll as System.ServiceModel.WasHosting.dll. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Confirm the Windows edition, installed WAS and WCF feature, and application's target framework. Inspect its first activation error in the approved development environment.
Repair the affected feature
Enable or restore only the documented Windows components needed by the authorized app. Use the publisher's supported WCF configuration and preserve existing host settings.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Start the intended test host and call the documented read-only endpoint. Confirm the endpoint opens and the original activation error is absent.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.