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. 
The only code on the page is as follows

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

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

===========

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.  

I'm running on the latest Mono 1.0.1 release.

Any ideas/suggestions?

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to