A
Aaron Stubbendieck
Hello,
I have an asp.net script that references system.drawing and I am receiving
the following the error when using system.drawing.bitmap:
Exception Details: System.DllNotFoundException: Unable to load DLL
(gdiplus.dll).
[DllNotFoundException: Unable to load DLL (gdiplus.dll).]
System.Drawing.SafeNativeMethods.GdiplusStartup(IntPtr& token,
StartupInput& input, StartupOutput& output) +0
System.Drawing.SafeNativeMethods.Initialize() +117
System.Drawing.SafeNativeMethods..cctor() +155
[TypeInitializationException: The type initializer for
"System.Drawing.SafeNativeMethods" threw an exception.]
System.Drawing.SafeNativeMethods.GdipCreateBitmapFromScan0(Int32 width,
Int32 height, Int32 stride, Int32 format, HandleRef scan0, IntPtr& bitmap)
+0
System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat
format) +76
ASP.graphics_aspx.__Render__control1(HtmlTextWriter __output, Control
parameterContainer) in file.aspx:9
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
On the same system I have a C# application that uses system.drawing and it
works with no problem. I've tried reinstalling the framework with no avail.
Any suggestions on how to fix this?
Thanks,
Aaron Stubbendieck
I have an asp.net script that references system.drawing and I am receiving
the following the error when using system.drawing.bitmap:
Exception Details: System.DllNotFoundException: Unable to load DLL
(gdiplus.dll).
[DllNotFoundException: Unable to load DLL (gdiplus.dll).]
System.Drawing.SafeNativeMethods.GdiplusStartup(IntPtr& token,
StartupInput& input, StartupOutput& output) +0
System.Drawing.SafeNativeMethods.Initialize() +117
System.Drawing.SafeNativeMethods..cctor() +155
[TypeInitializationException: The type initializer for
"System.Drawing.SafeNativeMethods" threw an exception.]
System.Drawing.SafeNativeMethods.GdipCreateBitmapFromScan0(Int32 width,
Int32 height, Int32 stride, Int32 format, HandleRef scan0, IntPtr& bitmap)
+0
System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat
format) +76
ASP.graphics_aspx.__Render__control1(HtmlTextWriter __output, Control
parameterContainer) in file.aspx:9
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929
On the same system I have a C# application that uses system.drawing and it
works with no problem. I've tried reinstalling the framework with no avail.
Any suggestions on how to fix this?
Thanks,
Aaron Stubbendieck