dispex.dll Error in Windows 10 and 11: Managed legacy scripting dispatch

A legacy app can open a document but throws an automation exception that names dispex.dll when the document runs a supported built-in action.
The Windows file inventory identifies dispex.dll as Microsoft ® DispEx. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Capture the document type, host application, exception and module path using a trusted sample. Compare the same app's ordinary document behavior and current publisher support.
Repair the affected feature
Use the app vendor's update or migration path and maintain published script security controls. Apply Windows servicing for a confirmed system-component problem.
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 the trusted sample and run the same supported operation. Confirm it produces the expected output without the original event.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.