[Mono-dev] Dll not found when deploying a mono app into a different machine

Paolo Molaro lupus at ximian.com
Wed Oct 15 10:51:06 EDT 2008

On 10/13/08 Andoni Morales wrote:
> I'm having a very strange problem on Windows....
> I've created a multimedia player based on GStreamer an Gtk that runs both on
> Windows and Linux. The GStreamer backend is written in C and wrapped to C#
> using the GAPI tools, importing my own dll called libcesarplayer.dll.
> I compile and link libcesaplayer.dll on windows (I've tried both Mingw and
> MSVC) and all works well.
> But.... If I try to run my app in my laptop, for example, I got a
> DllNotFoundException. So, it just works in the computer I used to compile
> libcesarplayer.dll.
> Do I have to compile it in a special way?

It's likely that the library depends on another library that you have
installed and that you didn't copy (or you use a windows binary on a
linux system, who knows, you provide too few details).
You can run with:
	MONO_LOG_LEVEL="debug" MONO_LOG_MASK="dll" mono yourprogram.exe
as detailed in the man page to see what error might happen when loading
your library.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list