System.Drawing.SafeNativeMethods.GdipCreateBitmapFromScan0 exception

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I ran into following exception. The task was creating thumbnail images and passing them to the client via web services. GetThumbnail method of Image class error out

System.Web.Services.Protocols.SoapException: System.NullReferenceException: Object reference not set to an instance of an object
at System.Drawing.SafeNativeMethods.GdipCreateBitmapFromScan0(Int32 width, Int32 height, Int32 stride, Int32 format, HandleRef scan0, IntPtr& bitmap
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height
at Code.DataAccess.CatalogEditing.Imaging.ImageAccess.GetImage(Int32 ImageID

We could only fixed the problem by UNINSTALLING and INSTALLING the .Net Framework in the production box

Does anyone has an idea about why it did happen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top