FileNotFoundException (DLL not found)

I am getting this strange error on one of the client machines. It throws a FileNotFoundException, but this DLL is definitely right in the executable folder .. Why can't it find it? Please advise..

-2


source to share


2 answers


Psychic debugging, since you didn't provide full details of the exception details, is if you have a 32 bit or 64 bit mismatch:

  • Your executable file is AnyCPU
  • The linked DLL (or link below) is x86
  • The machine executing the executable is 64 bits


Basically, you'll have to recompile your C # executable with an x86 platform if you have an x86 DLL dependency (usually an unmanaged DLL).

+7


source


An assembly may be missing one of the dependent assemblies.



+2


source







All Articles