[Mono-osx] System.Drawing.Image.FromFile - System.DllNotFoundException: gdiplus.dll

mc2008 malumbo.chipeta at satmap.com
Fri Jul 1 12:17:22 EDT 2011


Hi Duane,

I am using the MonoMac bundling process (Project->Create Mac Installer->Include Mono in application bundle->Don’t link assemblies->Create Package).

Here are the relevant version numbers:
MonoMac - 1.0
Mono -  2.10.2
MonoDevelop - 2.4.2
Mac OS X - 10.6.8.

Kind regards,
Malumbo

From: Duane Wandless [via Mono] [mailto:ml-node+3638611-294075271-249233 at n4.nabble.com]
Sent: 01 July 2011 17:06
To: Malumbo Chipeta
Subject: Re: System.Drawing.Image.FromFile - System.DllNotFoundException: gdiplus.dll

What "bundling" process did you use?  And what version of Mono are you using?
On Fri, Jul 1, 2011 at 12:00 PM, mc2008 <[hidden email]</user/SendEmail.jtp?type=node&node=3638611&i=0>> wrote:
Hi,

I have an app which uses System.Drawing.Image.FromFile. The method works
without any problems when debugging the app through MonoDevelop. However,
when the app (bundled with Mono) is running on a Mac which doesn't have Mono
installed, System.Drawing.Image.FromFile throws an exception:

System.TypeInitializationException: An exception was thrown by the type
initializer for System.Drawing.GDIPlus ---> 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] in <filename unknown>:0
 --- End of inner exception stack trace ---
 at System.Drawing.Image.FromFile (System.String filename, Boolean
useEmbeddedColorManagement) [0x00000] in <filename unknown>:0
 at System.Drawing.Image.FromFile (System.String filename) [0x00000] in
<filename unknown>:0

Has anyone else encountered this error? If it's occurring because the
bundling process didn't include gdiplus.dll, do you know where I can find
this DLL?

I would be most grateful to receive your suggestions.

Many thanks.

--
View this message in context: http://mono.1490590.n4.nabble.com/System-Drawing-Image-FromFile-System-DllNotFoundException-gdiplus-dll-tp3638591p3638591.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
_______________________________________________
Mono-osx mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=3638611&i=1>
http://lists.ximian.com/mailman/listinfo/mono-osx


_______________________________________________
Mono-osx mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=3638611&i=2>
http://lists.ximian.com/mailman/listinfo/mono-osx

________________________________
If you reply to this email, your message will be added to the discussion below:
http://mono.1490590.n4.nabble.com/System-Drawing-Image-FromFile-System-DllNotFoundException-gdiplus-dll-tp3638591p3638611.html
To unsubscribe from System.Drawing.Image.FromFile - System.DllNotFoundException: gdiplus.dll, click here<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3638591&code=bWFsdW1iby5jaGlwZXRhQHNhdG1hcC5jb218MzYzODU5MXwyMDE5MjgzMzA0>.


--
View this message in context: http://mono.1490590.n4.nabble.com/System-Drawing-Image-FromFile-System-DllNotFoundException-gdiplus-dll-tp3638591p3638649.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110701/3add72c9/attachment.html 


More information about the Mono-osx mailing list