[Mono-dev] File not found error when using Activator.CreateInstanceFrom()

nekresh nekresh at gmail.com
Thu Jan 6 08:52:23 EST 2011

On Wed, Jan 5, 2011 at 8:04 PM, mike <mguman at knology.net> wrote:
> Not sure what you mean.  Actually, I was just refreshing the thread.  ;-)
> See previous post and example code, ...."If I p/Invoke to a single native
> dll, all is fine. However if that dll depends on a secondary native dll, I
> get an "unhandled exception: System.DLLNotFoundException". Again, this
> scenario works fine under .NET, fails under 2.8 (under win mono)
> The issue seems to be related to p/Invoking a dynamic link library which
> depends on a second native dll.

Have you checked your LD_LIBRARY_PATH environment variable ?
In order to find a native library in the current folder, the
LD_LIBRARY_PATH must contain . or the full path to your application's
This vary from windows which is searching in the application's base
folder first (see Remarks in

More information about the Mono-devel-list mailing list