Drawing with GDI + under IIS
I am running a web application under IIS and we are drawing graphs that are sent to clients. We used to work under iis6, but when migrating to 2008 (iis7) we ran into some very strange graphics problems. I came across the msdn docs for GDI + stating that "GDI + functions and classes are not supported for use in a Windows service." I suspect my problems are probably related to further isolation of services http://msdn.microsoft.com/en-us/library/ms533798%28VS.85%29.aspx
My question is, how much should we draw graphics? Raw GDI? OpenGL - but doesn't require a DC yet?
a source to share
I asked a similar question:
Why not use GDI + from ASP.NET
I switched to LeadTools libraries.
Of course, you can choose any library that is device independent. GDI + depends on the device context, which gives it the physical device it will be based on. However, when running as a service, the graphics adapter is probably not available for use as it would be in a desktop environment.
You can also write your own graphics routines that draw to the bitmap. A bitmap is simply raw memory located in a specific format.
Not 100% for your particular situation, considering the details; but why not do a graphical rendering with a simple asp.net app? You can use the System.Drawing namespace which wraps GDI +
If you only need a barebones feature to render graphics and deliver to clients over HTTP, you can also use HTTPHandler
a source to share