[Mono-list] Color XXXX is not a valid color errors

Sebastien Pouliot sebastien.pouliot at gmail.com
Wed Mar 28 13:47:56 EDT 2007


On Wed, 2007-03-28 at 11:14 -0500, Ted Milker wrote:
> Sebastien Pouliot wrote:
> > You should avoid mixing different versions of components. It can work,
> > but it can fail too (and no one test them).
> >   
> That was a typo.  I mixed up mod_mono's current version number with 
> xsp's.  I am using mono 1.2.3, xsp 1.2.3 and mod_mono 1.2.1(latest 
> available on download page)
> > Also ensure that you have updated your libgdiplus to version 1.2.3 (same
> > as your mono installation).
> >   
> Well, this is a headless web server that does not have X11 on it.  Why 
> would these colors come from a graphics library when we are talking 
> about ASP.NET and HTML and ultimately Red = #ff0000 or whatever shade.

Well it's true that MS could have done it another way (headless servers
aren't a big deal to them) but the reality is that System.Web depends on
System.Drawing (where Color resides) which in turns depends on
libgdiplus.

Now libgdiplus doesn't only do X stuff, it also provides useful stuff
(even for the web, which is rarely limited to text/html ;-) like the
image codecs. 

But I agree the design is ill based for headless servers :-| but, unless
you're very careful on what you're doing(*), libgdiplus is required.

(*) and that could change from releases to releases due to internal
changes in the class libraries.


p.s.: It's even worse because there's a dependency on SWF too :(

-- 
Sebastien Pouliot  <sebastien at ximian.com>
Blog: http://pages.infinit.net/ctech/



More information about the Mono-list mailing list