rometadata.dll Error in Windows 10 and 11: Windows Runtime metadata library

A desktop app using Windows Runtime APIs may show a metadata or type activation error when it opens a specific feature.
The Windows file inventory identifies rometadata.dll as Microsoft MetaData Library. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Identify the exact missing runtime type and the app’s supported Windows and SDK versions. Compare a small documented example in the same project.
Repair the affected feature
Use the publisher’s signed update or repair supported Windows SDK references in the project. Apply supported Windows updates when the app requires them.
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 same feature and verify it loads the intended runtime type without the original error.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.