Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dllimport failed to locate dll even though it is in the PATH

I use [Dllimport("DllName.dll")] where I'm sure a path to my dll exists in the process PATH environment variable, and still I get "DllName.dll could not be found"

like image 763
Hanan Avatar asked Nov 16 '08 16:11

Hanan


1 Answers

"DllName.dll could not be found" could also mean that DllImport has not found one of DllName.dll dependencies.

Grab Dependecy Walker to check which dependecy you are missing.

like image 67
Bernardo Botelho Avatar answered Nov 11 '22 23:11

Bernardo Botelho