Serverside CSharp FAQ

From RAGE Multiplayer Wiki


Server events not getting triggered

This may be due to mismatched version of either one of the following files used, "server.exe", "bridge.dll", "server-files/bridge/runtime/bootstrapper.dll" or compiled code reference of "bootstrapper.dll/nuget gtanetwork api"

The current NuGet package for gtanetwork.api is outdated (0.3.6). Please remove it from your project.

Since version 0.3.7 you ONLY have to reference to Bootstrapper.dll in the "server-files/bridge/runtime/bootstrapper.dll" which will always up to date when you run updater.exe (see next FAQ)


Latest version of bootstrapper.dll/GTAN API

The latest version of bootstrapper.dll can be found inside your RAGEMP directory, located at %RAGEMP Directory%\server-files\bridge\runtime\Bootstrapper.dll


TargetParameterCountException: Parameter count mismatch

This is due to a mismatch between either one of your bridge.dll, runtime/bootstrapper.dll or bootstrapper.dll/nuget gtanetwork api. To resolve this, ensure you are using the latest version of each, and make sure your code is being compiled with the same bootstrapper.dll as in your server runtime files.


Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. System.TypeLoadException: Could not load type 'x' from assembly 'x', Version-4.2.x.x

This occurs when you compile your gamemode using a version of .NET Core that differs from the binaries in your runtime folder. To fix this issue, update your binaries in "\server-files\bridge\runtime\" to the version of .NET Core used to compile your dll

Set your project match to the .NET Core version which you can find in .version file in the runtime folder (for server-side bridge) or in the dotnet folder (for client-side). If the version is 2.2.0 you must have SDK version 2.2.0+ installed