NOW LOADING

Troubleshooting Type Initialization Errors


Troubleshooting the Type Initialization Error at runtime

If you receive the error “The type initializer for Microsoft.Windows.Devices.Midi2.<some class> threw an exception” at runtime, in the console app in particular, it usually means that the Windows MIDI Services SDK is not properly registered on the system, or you are running on an unsupported version of Windows.

Didn't find what you were looking for?

Windows MIDI Services is an open source project with all source available on GitHub. We have a great community on Discord as well. Between GitHub and Discord, you should find the information you are looking for.