ImgWriter is dependent on the intrinsic ASP objects and requires that ASP compatibility is set when used in ASP.NET.
The .NET Runtime gives the following error message:
Description: An unhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Operation failed