Unity. Your mono runtime and class libraries are out of sync

Hi! I have problem in unity server build. Instance AmazonLinux.
I use unity 2021.2. Because it’s have new feature “dedicated server” target build.
Settings: IL2CPP, .net framework.

How can I fix this?

cant resolve internal call to "System.Runtime.InteropServices.Marshal::GetIUnknownForObjectInternal(object)" (tested without signature also)

Your mono runtime and class libraries are out of sync.
The out of sync library is: /local/game/GameServer_Data/Managed/mscorlib.dll

When you update one from git you need to update, compile and install
the other too.
Do not report this as a bug unless you're sure you have updated correctly:
you probably have a broken mono install.
If you see other errors or faults after this message they are probably related
and you need to fix your mono install first.
cant resolve internal call to "System.Runtime.InteropServices.Marshal::GetHRForException_WinRT(System.Exception)" (tested without signature also)

Fixed, just rebuilt server. Sorry for topic, it can be closed/removed.
Succesfuly integrated gamelift, works amazing! Thanks.

1 Like

Awesome! Glad to hear!