[Mono-list] System.Drawing.Image Weirdness

Matthew Metnetsky met@uberstats.com
Fri, 13 Aug 2004 08:35:37 -0400


I'm trying to use Image.FromFile within mod_mono and I keep getting the
strangest error.  When I go to the page I get an internal server error.=20
The only code on the page is as follows

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
<%@ Page Language=3D"C#" %>

<script language=3D"C#" runat=3D"server">
    protected override void OnInit(EventArgs e)
    {
      System.Drawing.Image img =3D
System.Drawing.Image.FromFile("/home/html/devel3/u-ass/images/menus/roles.g=
if");
      Response.Write(img.Height + "<br><br>-----<br>");
      Response.Write(img.Width + "<br><br>-----<br>");
    }
</script>

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

And the console I used to start the server gets the following message:
"X11 connection rejected because of wrong authentication".

I have no idea whats going on.  The code in a console application works
fine, but once it hits the server it just dies. =20

I'm running on the latest Mono 1.0.1 release.

Any ideas/suggestions?