This project has moved and is read-only. For the latest updates, please go here.

Overflow exception when getting map in SharpMap

Jul 9, 2009 at 2:11 PM

Hi guys,

I have a problem that i can understand.

I am trying to use SharpMap on my application. When i release the application, everything is ok. However, when i try to debug the application an exception is thrown in this line:

Bitmap image = (Bitmap)map.GetMap();

The stack trace saids:

en System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
   en System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
   en SharpMap.Map.GetMap()
   en MapHandler.ProcessRequest(HttpContext context) en c:\Inetpub\wwwroot\ControlEstrategico\MapHandler.ashx:línea 83
   en System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Any help would be welcomed! Thank you.