Sunday 15 June 2014

asp.net - System.Drawing: GDI+ is not properly initialized (​internal GDI+ error​) -


Text after "

An ASP.NET web site randomly raises this System.Drawing error:

System.Runtime InteropServices.ExternalException: System.Drawing.Bitmap..ctor (Stream stream) System.Drawing.ToolboxBitmapAttribute..cctor ()

  exception information: Exception type: TypeInitializationException Exception Message: Starter type 'System.Drawing.ToolboxBitmapAttribute' left the exception. Stack trace: On system. Reflection.CustomAttribute._CreateCaObject (void * pModule, void * pCtor, byte ** ppBlob, byte * PEndBlob, Int32 * pcNamedArgs) system. Reflection.CustomAttribute.CreateCaObject (modules, RuntimeMethodHandle ctor, in IntPtr & amp; system. Blob, blob Intpitr Ind, Int 32 and designated Aargs). reflection. Custom attribute Gate Kstmtm properties (module decorated module, Int 32 decorated metadata token, Intros Pejkount, runtime type Attributfiltr type Boolean course, Benihartebl, Ailist derived attributes) on the system. Reflections: CustomAvit.Get Custom Property (runtime type type, type runtime type, Boolean heirs on system). System Time Type The system on System.ComponentModel.TypeDescriptor.TypeDescriptionNode on the Gate Custom Property (type of system type, Boolean heirs) on System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetAttributes () System.ComponentModel.TypeDescriptor.GetAttributes (type componentType) System.Web.UI.ThemeableAttribute.IsTypeThemeable (type) on SystemTypeDescriptor.System.ComponentMod System.web.on.Control.ApplySkin (page page) on system.ComponentModel.TypeDescriptor.GetAttributes Type) but on WebkUIkControlkInitRecursive (control namingContainer) System.Web.UI.Control.InitRecursive on SystemkWebkUIkControlkInitRecursive (control namingContainer) on SystemkWebkUIkControlkInitRecursive (control namingContainer) to ( control System.Web.UI.Page.ProcessRequestMain, Boolean includeStagesAfterAsyncPoint (namingContainer on Boolean includeStagesBeforeAsyncPoint))  

Why? I think this is a .NET Framework error (I'm not really trying to create any image).

I found a temporary solution: Restart IIS and delete temporary asp.NET files ("% WINDIR% \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP. NET files "). But when this error output is in the web-server, temp is not sufficient ...

by chance We have done this on one of our servers today. This is a known problem in ASP.NET, a hotfix for it.


No comments:

Post a Comment