I'm getting that strange error on one of client's machines. It throws FileNotFoundException, but that DLL is definitely right there in the folder with Executable.. Why it can't find it? Please advise..
Asked
Active
Viewed 3,548 times
2 Answers
7
Psychic debugging, since you have not included the full exception details, is that you have a 32bit versus 64bit mismatch:
- Your Executable is AnyCPU
- The referenced DLL (or a downstream reference) is x86
- The machine running the executable is 64bits
Basically, you'll have to recompile your C# executable with a Platform of x86 if you have any x86 DLL dependency (usually an unmanaged DLL).

user7116
- 63,008
- 17
- 141
- 172
-
brilliant suggestion! Thank you so much! – Jeffrey Rasmussen Nov 22 '11 at 10:26
2
The assembly may be missing one of its dependent assemblies.

mgronber
- 3,399
- 16
- 20
-
1
-
1Yes, seems like that. How to check for additional dependencies of that DLL I referenced to? – Jeffrey Rasmussen Nov 22 '11 at 09:06