[Mono-list] gdiplus.dll Not Found?

David P. Donahue ddonahue@ccs.neu.edu
Sun, 13 Feb 2005 13:42:05 -0500


I'm making a web form that grabs a blod from MySQL and displays it as an 
image.  However, when I try to call the form, I get the following stack 
trace:

System.DllNotFoundException: gdiplus.dll
in <0x00053> (wrapper managed-to-native) 
System.Drawing.GDIPlus:GdipLoadImageFromDelegate_linux 
(System.Drawing.GDIPlus/StreamGetBytesDelegate,System.Drawing.GDIPlus/StreamPutBytesDelegate,System.Drawing.GDIPlus/StreamSeekDelegate,System.Drawing.GDIPlus/StreamCloseDelegate,System.Drawing.GDIPlus/StreamSizeDelegate,intptr&)
in <0x000e2> System.Drawing.Image:InitFromStream (System.IO.Stream)
in <0x00056> (wrapper remoting-invoke-with-check) 
System.Drawing.Image:InitFromStream (System.IO.Stream)
in <0x0001c> System.Drawing.Bitmap:.ctor (System.IO.Stream,bool)
in <0x0006b> (wrapper remoting-invoke-with-check) 
System.Drawing.Bitmap:.ctor (System.IO.Stream,bool)
in <0x00025> System.Drawing.Image:FromStream (System.IO.Stream,bool)
in <0x00079> cyber0ne.test2:Page_Load (object,System.EventArgs)
in <0x00069> (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void_object_EventArgs 
(object,System.EventArgs)
in <0x00067> System.Web.UI.Control:OnLoad (System.EventArgs)
in <0x00031> System.Web.UI.Control:LoadRecursive ()
in <0x00198> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x002eb> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState 
(System.Web.HttpApplication/IStateHandler,bool&)


For reference, the code in the form is from the tutorial at:
http://www.codeproject.com/aspnet/image_asp.asp
under the heading "Displaying Upload File."  The most significant part 
is where it grabs the blob as a byte array and outputs it as an image:

byte []  buffer = data.getImage(imagenumber);
System.IO.MemoryStream stream1 = new System.IO.MemoryStream(buffer,true);
stream1.Write(buffer,0,buffer.Length);
Bitmap m_bitmap = (Bitmap) Bitmap.FromStream(stream1,true);
Response.ContentType = "Image/jpeg";
m_bitmap.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Jpeg);


Any ideas why I'm getting this error?  How can I fix it?  Any help would 
be much appreciated.


Regards,
David P. Donahue
ddonahue@ccs.neu.edu