'Parameter is not valid' error when creating new Bitmap in webservice
When creating a new bitmap (new Bitmap(1600,1600)) in a .net webservice I get error: 'Parameter not valid'. Code is running fine when testing locally in VS2008, but when running on a server, it dosn't work. Sometimes I get an 'Out of memory' error in same statement, although theres 4 GB available...?
I have been digging a little into this and found this statement at the MSDN documentation for System.Drawing namespace: 'Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service. Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.'
If this is a fact, how will I then be able to create and draw bitmaps from a .net webservice?