[Mono-aspnet-list] Requirements for System.Drawing usage under ASP.NET / Mono

James Rhodes jrhodes at redpointsoftware.com.au
Sat Dec 22 15:21:02 UTC 2012

Hi everyone,

I have an ASP.NET site that uses System.Drawing to dynamically render
images and this works fine on my local Windows development machine.
However, when I move it onto the Linux box running Mono, the drawing
operations silently fail and I end up with blank PNG files.

The live server is running at http://makemeaworld.com/ and the source
for the image rendering (and other files) is located at

I'd expect an exception or library load failure of some kind, but I
just get a silent failure.  I've tried without running an X server and
with running Xvfb, but no matter what I do, it just won't set pixels
in the PNG data..  The relevant lines where it's drawing the image
data is at https://github.com/hach-que/Tychaia/blob/master/MakeMeAWorld/ImageGenerator.cs#L315,
where it uses FillRectangle to draw a pixel.

Any help with this would be greatly appreciated.

Regards, James Rhodes.
Redpoint Software


More information about the Mono-aspnet-list mailing list