[Mono-dev] System.DllNotFoundException: gdiplus.dll
Sebastien Pouliot
sebastien.pouliot at gmail.com
Tue May 6 13:26:15 EDT 2008
Hey,
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.
> /opt/mono-1.9.1/lib/libgdiplus.so
> /opt/mono-1.9.1/lib/libgdiplus.so.0
> /opt/mono-1.9.1/lib/libgdiplus.so.0.0.0
> /usr/lib/libgdiplus.so.0
> /usr/lib/libgdiplus.so.0.0.0
(*) 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
answers.
>
>
> Server Error in '/' Application
> gdiplus.dll
>
> Description: HTTP 500. Error processing request.
>
> Stack Trace:
>
> System.DllNotFoundException: gdiplus.dll
> at (wrapper managed-to-native)
> System.Drawing.GDIPlus:GdiplusStartup
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
> 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
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list