microsoft.visualbasic.activities.compilerui.dll Error in Windows 10 and 11: Visual Basic workflow editor expressions

A workflow can execute but expose an error when its Visual Basic expression editor opens.
The Windows file inventory identifies microsoft.visualbasic.activities.compilerui.dll as Visual Basic Hosted Compiler Resources. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Compare a simple new expression with the existing action using the same Visual Studio and Framework versions, and record whether only the designer fails.
Repair the affected feature
Repair the supported workflow developer components or update the project as documented. Keep an unchanged copy of the original workflow.
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
Reopen the expression editor, save a harmless change to the copy and rerun the workflow.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.