midi2.diagnosticstransport.dll Error in Windows 11: Windows MIDI diagnostic endpoints

A developer may see ordinary MIDI devices but find that the documented Microsoft diagnostic endpoints do not appear.
The Windows file inventory identifies midi2.diagnosticstransport.dll as Windows MIDI Services Service Test Transport Plugin. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Check the supported Windows MIDI Services build and whether the endpoint list includes the documented diagnostics endpoints. Compare a fresh enumeration after reconnecting only the test app.
Repair the affected feature
Use the supported Windows MIDI Services update and the matching official MIDI Console or SDK version. Preserve existing instrument routing.
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
Run the documented endpoint test and confirm that the diagnostic output returns through the expected test endpoint.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.