Skip to content

Commit

Permalink
docu
Browse files Browse the repository at this point in the history
  • Loading branch information
Psychlist1972 committed Apr 17, 2024
1 parent d2678c8 commit e89bdee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Windows Midi Services
layout: home
has_children: true
has_children: false
---
# Windows MIDI Services

Expand Down
12 changes: 3 additions & 9 deletions docs/troubleshooting/type-initialization-error.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@ title: Type Initialization Error at Runtime
parent: Troubleshooting
---

# Troubleshooting
# Type Initializer Error

## Errors


### Type Initializer Error

If you receive the error "The type initializer for `Windows.Devices.Midi2.<some class>` threw an exception", in the console app in particular, it usually means that the Windows MIDI Services API is not properly registered on the system. This can happen during development if you do run the installer which puts the appropriate activation entries into the registry.

This should never appear in production when Windows MIDI Services is in the box, unless you are using a development build for which the newer types have not been properly registered.
If you receive the error "The type initializer for `Windows.Devices.Midi2.<some class>` threw an exception" at runtime, in the console app in particular, it usually means that the Windows MIDI Services API is not properly registered on the system. This can happen during development if you don't run the installer which puts the appropriate activation entries into the registry.

This should never appear in production when Windows MIDI Services is in Windows, unless you are using a development build for which the newer types have not been properly registered.

0 comments on commit e89bdee

Please sign in to comment.