Unable to load DLL rlm913_x86.dll, rlm913_x64.dll, rlm932_x86.dll, rlm932_x64.dll, jnbauth_x86.dll, or jnbauth_x64.dll

You run your application and get an error “Unable to load DLL rlm913_x86.dll” (or rlm913_x64.dll, rlm932_x86.dll, or rlm932_x64.dll, or jnbauth_x86.dll, or jnbauth_x64.dll, depending on the version of JNBridgePro that you are using and whether you’re running a 32-bit or 64-bit process). These dlls implement JNBridgePro licensing, and one is used for 32-bit applications, the other for 64-bit applications. The appropriate one must be in the folder with your application’s .exe file. If the application can be run as either a 32-bit or a 64-bit application, place both of them in the application’s folder — the correct one will automatically be loaded.

To build your application so that the rlm913/rlm932/jnbauth dll file or files is always included in the build, please do the following:

  • In Visual Studio’s Solution Explorer, right-click on your application’s node and select Add->Existing element….
  • Navigate to the appropriate rlm dll (rlm913_x86.dll, rlm913_x64.dll, rlm932_x86.dll, rlm932_x64.dll, jnbauth_x86.dll, or jnbauth_x64.dll) and select it.  The file will now be added to the project. (Note that you cannot simply add it as a reference, since it is not a managed DLL.)
  • Right-click on the newly added rlm dll in Solution Explorer and select Properties.
  • In the properties pane, look for the Copy Output property and make sure it is set to Copy Always.
  • Repeat the process for the other rlm dll, if you want both to be part of your application (only if you are building the application as Any CPU — so that it will run as 32-bit on a 32-bit system, and as 64-bit on a 64-bit system.
  • Build your application.  Now, the rlm dlls will always be copied into your build.