This error means that you are trying to load a 32-bit DLL into a 64-bit process or a 64-bit DLL into a 32-bit process. On Windows, DLL bits must match the process bit for proper loading.
Is your native dll 32 or 64 bit? In the C # project build settings, what platform are you targeting? If you go to the properties of the C # project, you can go to the "Assembly" tab and change the "Platform Target" to something specific, such as x86 or x64, to match the platform for which your native DLL was created.
DLL #. # AnyCPU, 32- 32- Windows 64- 64- Windows. - 32- 64- DLL.
# - (x86, x64), DLL .