Why you should not use System.Drawing from ASP.NET applications

 

Probably you would heard it many times and it is quite evident from the MSDN article  https://msdn.microsoft.com/en-us/library/system.drawing.aspx

“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.”

Today I’ll try to explain WHY it is not supported through the windbg dump analysis.

https://www.asprangers.com/post/2012/03/23/Why-you-should-not-use-SystemDrawing-from-ASPNET-applications.aspx

Read More