[Mono-list] Issue with libgdiplus in aspx/cs file

nucleo support at nucleosolutions.com
Fri Nov 30 11:33:12 EST 2007


Hi Everyone,

I'm trying to get a aspx page working on my linux box running mono but I
always get an error about libgdiplus.

the aspx file is like this:
%@ Page Language="C#" MasterPageFile="mppsport.master"
AutoEventWireup="true" $
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Se$
    <br />
    <br />
    <asp:Calendar ID="Calendar1" runat="server" Height="431px" Width="438px"
On$
    <br />
    <br />
    <br />
</asp:Content>

And the cs file is like this:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Globalization;
using System.Threading;


public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
         Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");

        // Calendar1.SelectedDates.Add(DateTime.Now);
        //Calendar1.Calendar1.SelectedDates.Add(DateTime.Now.AddDays(+3));

         Calendar1.DataBind();




    }
    protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
    {
        CalendarDay d = ((DayRenderEventArgs)e).Day;
        TableCell c = ((DayRenderEventArgs)e).Cell;
        if (d.DayNumberText == DateTime.Now.Day.ToString())
        {
            c.Text = " # " +  d.DayNumberText + " Ecoutez Slap shot ";
        }
    }
}

Here is the error message displayed as a web page:
Description: Error processing request.

Error Message: HTTP 500. System.DllNotFoundException: libgdiplus.so

Stack Trace:

System.DllNotFoundException: libgdiplus.so
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x00000] 

I checked to see if libgdiplus coudl be found by ldconfig so I did this:

# ldconfig -p |grep libgdiplus
        libgdiplus.so.0 (libc6) => /usr/lib/libgdiplus.so.0
        libgdiplus.so (libc6) => /usr/lib/libgdiplus.so

I'm starting to think it might be another lib used by libgdiplus that the
system cannot find but i'm not sure how to find which one... anyone can
help?
-- 
View this message in context: http://www.nabble.com/Issue-with-libgdiplus-in-aspx-cs-file-tf4919931.html#a14080263
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list