Server Error in '/vault' Application.

A Graphics object cannot be created from an image that has an indexed pixel format.

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.Exception: A Graphics object cannot be created from an image that has an indexed pixel format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Exception: A Graphics object cannot be created from an image that has an indexed pixel format.]
   System.Drawing.Graphics.FromImage(Image image) +209
   Holmok.HttpHandlers.ImageHandler.Watermark(Bitmap image) +36
   Holmok.HttpHandlers.ImageHandler.ShowImage(String image_path) +1497
   Holmok.HttpHandlers.ImageHandler.RequestImage() +322
   Holmok.HttpHandlers.ImageHandler.ProcessRequest(HttpContext context) +53
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


Version Information: Microsoft .NET Framework Version:1.1.4322.2512; ASP.NET Version:1.1.4322.2515