[Mono-list] DllNotFoundException

Robert Jordan robertj at gmx.net
Mon Jul 13 08:32:21 EDT 2009

Mikro Trekker wrote:
> I am using Mono 2.4 on Vista. Project executable (C#) works fine on
> Windows platform. All managed DLLs that EXE is using reside in the same
> directory where EXE is located.
> When I try to run EXE then I get DllNotFoundException ?

Unlike MS.NET, Mono is not loading p/invoke libraries from the
assembly's directory automatically.

You must either assure that the current directory is properly set
or place the native DLL into a directory listed by the PATH env var.

I believe this is fixed in SVN trunk.


More information about the Mono-list mailing list