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"
"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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With