webengine.dll Error in Windows 10 and 11: Legacy ASP.NET ISAPI loading

A legacy .NET Framework web application on IIS returns a handler-load error that mentions webengine.dll.
The Windows file inventory identifies webengine.dll as Microsoft ASP.NET ISAPI Shim DLL. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Confirm the site's intended .NET Framework version and pipeline mode. Compare its handler mapping with an approved baseline and record the first IIS error code. Check whether the same site loads in an approved test environment.
Repair the affected feature
Use Windows Features and the supported IIS registration for the application's target framework. Back up IIS settings before an approved application-pool change. Keep unrelated handlers and security restrictions in place.
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
Open a permitted test page and confirm IIS invokes the intended handler without a module-load error. Check the result in the application log.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.