# Invalid Libraries for MonoGame

**URL:** <https://qa.fmod.com/t/invalid-libraries-for-monogame/24370>\
**Category:** Other\
**Tags:** csharp\
**Created:** [June 29, 2026, 9:56pm UTC](https://qa.fmod.com/t/invalid-libraries-for-monogame/24370 "2026-06-29T21:56:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabehaswon](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@gabehaswon](https://qa.fmod.com/u/gabehaswon)\
**Post date:** [June 29, 2026, 9:56pm UTC](https://qa.fmod.com/t/invalid-libraries-for-monogame/24370/1 "2026-06-29T21:56:59Z")

</div>

I’ve been trying to set up FMOD for MonoGame, but the dlls `fmod.dll` and `fmodstudio.dll` both are invalid.

When trying to reference from Visual Studio: “The reference is invalid or unsupported”.  
When loading with NativeLibrary.Load, it throws a BadImageFormatException.

Both share a common issue - usually, it means loading an incompatible bit depth (i.e. 32bit on a 64bit machine), but that’d imply that the 64bit dll is actually 32bit. I cannot find any other reasons for this issue and it’s completely stopping me from starting to use FMOD at all.

---

<div class="post-metadata">

**Author:** ![gabehaswon](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@gabehaswon](https://qa.fmod.com/u/gabehaswon)\
**Post date:** [July 19, 2026, 3:20am UTC](https://qa.fmod.com/t/invalid-libraries-for-monogame/24370/2 "2026-07-19T03:20:37Z")

</div>

Forgot to update - I don’t really know how, but I fixed it. I was confused on how the wrapper worked, and that meant I wasn’t using the libraries right. I eventually got it working…somehow.
