# .NET Studio Integration ERR\_HEADER\_MISMATCH

**URL:** https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426
**Category:** FMOD Engine
**Tags:** csharp
**Created:** [October 3, 2025, 10:49pm UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426 "2025-10-03T22:49:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![FlaxRabbit](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/flaxrabbit/32/9110_2.png) [@FlaxRabbit](https://qa.fmod.com/u/FlaxRabbit)
#### Post date: [October 3, 2025, 10:49pm UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426/1 "2025-10-03T22:49:48Z")

</div>

I’m trying to get the Studio API working with a barebones Raylib project I’ve created on Mac OS. I was able to get the Core API working and playing sounds after a bit of fiddling around with the dylibs pulled from the API download. I was originally getting an ERR\_HEADER\_MISMATCH when creating the FMOD system but was able to resolve that by changing the name of the dylib from libfmod to fmod to match the filename used by the DLLImport atrribute. When I went to integrate the Studio API I basically got the same issue but changing the name here didn’t resolve it. I’m new to working with with unmanaged code in this way so maybe I’m missing something obvious, but any help would be appreciated. Do the dylib files need to be copied in to bin or am I missing some setup in the csproj?

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [October 9, 2025, 5:48am UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426/2 "2025-10-09T05:48:32Z")

</div>

That’s definitely a little strange - what versions of the Core and Studio API libraries are you using?

---

<div class="post-metadata">

### Author: ![FlaxRabbit](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/flaxrabbit/32/9110_2.png) [@FlaxRabbit](https://qa.fmod.com/u/FlaxRabbit)
#### Post date: [October 10, 2025, 3:02am UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426/3 "2025-10-10T03:02:23Z")

</div>

I was able to resolve this by redownloading 2.02 and using those includes and dylibs instead. I tried copying the dylibs into the net8.0/runtimes/osx-arm64 directory in bin and that allowed me to keep the dllimports as they originally were. What’s the recommended way of getting those there instead of copying them by hand?

---

<div class="post-metadata">

### Author: ![FlaxRabbit](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/flaxrabbit/32/9110_2.png) [@FlaxRabbit](https://qa.fmod.com/u/FlaxRabbit)
#### Post date: [October 13, 2025, 3:12am UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426/4 "2025-10-13T03:12:33Z")

</div>

Seem to be getting a second issue that I really can’t figure out after trying to clean this up little bit. When running the project the first call to the library gets a “System.DllNotFoundException: Unable to load shared library ‘fmodstudio’ or one of its dependencies”. Then dlopen(/bin/Debug/net8.0/runtimes/osx/native/fmodstudio.dylib, 0x0001): tried: ‘//bin/Debug/net8.0/runtimes/osx/native/fmodstudio.dylib’ (no such file). I made sure that both libfmodstudio.dylib and libfmod.dylib are both in that folder so I cant figure out why that would be failing. I’ve tried putting them in usr/local/lib and a couple other global locations and they couldnt be found there either.

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [October 20, 2025, 4:37am UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426/5 "2025-10-20T04:37:15Z")

</div>

Thanks for your patience. Based on what you’ve described, it seems like everything is set up correctly. The only thing that comes to mind is that the dylibs are getting tagged with the `com.apple.quarantine` extended attribute, which will cause the OS to ignore them until the attribute is cleared. Usually this presents as the OS asking for verification or saying that the file is damaged when you attempt to open it.

I’d recommend trying to manually remove the attribute via terminal with the following command to see whether that resolves the issue for you:

```auto
 xattr -d com.apple.quarantine /path/to/file

```

---

<div class="post-metadata">

### Author: ![FlaxRabbit](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/flaxrabbit/32/9110_2.png) [@FlaxRabbit](https://qa.fmod.com/u/FlaxRabbit)
#### Post date: [October 28, 2025, 3:24am UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426/6 "2025-10-28T03:24:58Z")

</div>

> [@Leah\_FMOD](#):
>
> `xattr -d com.apple.quarantine /path/to/file`

I tried this, that attribute does not seem to be set

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [November 6, 2025, 1:57am UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426/7 "2025-11-06T01:57:25Z")

</div>

Sorry for the delayed response, and thanks for confirming that the attribute isn’t present. If possible, could I get you to upload your project, or a stripped down version of it where you can still reproduce the issue, to your [FMOD user profile](https://www.fmod.com/profile#uploads) so I can take a closer look at it on my end?

---

<div class="post-metadata">

### Author: ![FlaxRabbit](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/flaxrabbit/32/9110_2.png) [@FlaxRabbit](https://qa.fmod.com/u/FlaxRabbit)
#### Post date: [November 8, 2025, 9:06pm UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426/8 "2025-11-08T21:06:51Z")

</div>

Thanks, I’ve uploaded a basic solution using monogame to manage the window with my current setup for the libraries. I’ve played around a bunch with where I put them/what theyre called. Right now theres a libs folder in the root of the directory that gets copied into bin at build.

---

<div class="post-metadata">

### Author: ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)
#### Post date: [November 21, 2025, 6:33am UTC](https://qa.fmod.com/t/net-studio-integration-err-header-mismatch/23426/9 "2025-11-21T06:33:25Z")

</div>

Thanks for your patience!

Following a few steps, I’ve been able to get your project to build and run properly:

1. Ensure the FMOD libs have been added to rpath using `otool -l {absolute_path_to_lib}`
2. Modify the .csproj file to only include a single version of the FMOD libs - either the release or logging versions, and not both
3. Ensure that `VERSION.dll` and `STUDIO_VERSION.dll` in fmod.cs and fmod\_studio.cs respectively have the logging “L” suffix if you’re using the logging versions of the libs
4. Enforce the library order before any other FMOD API calls so that the Core lib is loaded before the Studio lib. The Unity integration does so using the following function:

```CSharp
        public static void EnforceLibraryOrder()
        {
            int temp1, temp2;
            FMOD.Memory.GetStats(out temp1, out temp2);

            FMOD.GUID temp3;
            FMOD.Studio.Util.parseID("", out temp3);
        }

```

Give that a shot and let me know how it goes!
