RSA Product/Service Type: C# Client
RSA Version/Condition: 3.5
izer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'km': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at kmPINVOKE.SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_km(ExceptionDelegate applicationDelegate, ExceptionDelegate arithmeticDelegate, Exc
eptionDelegate divideByZeroDelegate, ExceptionDelegate indexOutOfRangeDelegate, ExceptionDelegate invalidCastDelegate, ExceptionDelegate invalidOperat
ionDelegate, ExceptionDelegate ioDelegate, ExceptionDelegate nullReferenceDelegate, ExceptionDelegate outOfMemoryDelegate, ExceptionDelegate overflowD
elegate, ExceptionDelegate systemExceptionDelegate)
at kmPINVOKE.SWIGExceptionHelper..cctor()
--- End of inner exception stack trace ---
at kmPINVOKE.SWIGExceptionHelper..ctor()
at kmPINVOKE..cctor()
--- End of inner exception stack trace ---
at kmPINVOKE.R_KM_CTX_new_from_file__SWIG_1(String jarg1, Int32& jarg2)
at km.R_KM_CTX_new_from_file(String file, Int32& OUTPUT)
at Rsa.KeyManagerClient.RkmContext..ctor(String configurationFileName, String credentialPassword, String cachePassword)
Make sure that km.dll is loadable by the application. Windows will use its general DLL loading search path to find the DLL, which would be
- Working directory where your application is run
- Windows folder
- Windows/system32 folder
- Any folder defined by the PATH environment variable
With C#, you can also create a text file named exactly the same as you binary, and append a .config to it, with the content below. The following privatePath value assumes that a folder named "myDLLs" exists in the same folder where the .exe is, and that km.dll is placed in that "myDLLs" folder.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="myDlls/"/>
</assemblyBinding>
</runtime>
</configuration>
A Visual C++ Runtime dependency is required to use the DPM client DLLs. Make sure you have installed the either the Microsoft Visual C++ 2005 Redistributables or the Microsoft Visual C++ 2010 Redistributables depending if you used the Microsoft Visual Studio 2005 or Microsoft Visual Studio 2010 DPM client.
Related Articles
Attributes are missing from the SAML response sent by the RSA SecurID Access Identity Router to Microsoft AD FS 42Number of Views Error occured in RSA Federated Identity Manger (FIM) 4.1 'Unable to verify the signature value' error when processing asse… 26Number of Views SOAP Web Service AFX test connector capabilities fail with 'Failed to create service' and 'Unexpected EOF in prolog' messa… 90Number of Views Example: SAML IdP for Cloud Access Service Assertion 46Number of Views SAML Enablement Guide for Application Developers 28Number of Views
Trending Articles
Troubleshooting RSA SecurID Access Identity Router to RSA Authentication Manager test connection failures RSA SecurID Software Token 5.0.2 Downloads for Microsoft Windows RSA Authentication Manager 8.9 Release Notes (January 2026) Quick Setup Guide - Passwordless Authentication in Windows MFA Agent for Active Directory RSA Authentication Manager 8.8 Setup and Configuration Guide