[Mono-dev] System.DllNotFoundException: gdiplus.dll
sebastien.pouliot at gmail.com
Tue May 6 13:26:15 EDT 2008
On Tue, 2008-05-06 at 04:06 -0700, matte at softfusion.net wrote:
> Was wondering if anyone could give me some pointers on how to
> troubleshoot this error.
> I have mono 1.9.1, mod-mono 1.9.1 and libgdiplus (not sure which
> version) installed.
First always make sure you're using the same version of libgdiplus as
your mono version (otherwise you'll end up with other problems*).
> Non graphical aspx pages run fine, but when i try
> to run one that uses image objects, ect on it i get the error below.
mod_mono is (generally) not executed under your user own account. So
this means the library packaged with the installer, /opt/mono-1.9.1/,
will not be available (by default) unless you update your environment
variables (like LD_LIBRARY_PATH)
> Running ldconfig didnt resolve it, and if i do [ldconfig -p |grep libgdiplus]
> it returns [libgdiplus.so.0 (libc6) => /usr/lib/libgdiplus.so.0]
> i have the following copies of libgdiplus on my machine.
(*) make sure your mono, from /opt/mono-1.9.1/ is not using the last one
> i found some examples on how to debug a winforms app with this error,
> but no example on how to debug mod-mono with it.
Just google a bit more. I used "mod_mono gdiplus.dll" and found several
> Server Error in '/' Application
> Description: HTTP 500. Error processing request.
> Stack Trace:
> System.DllNotFoundException: gdiplus.dll
> at (wrapper managed-to-native)
> at System.Drawing.GDIPlus..cctor () [0x00000]
> Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42
> This message was sent using IMP, the Internet Messaging Program.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list