FineUI 官方论坛

标题: demo出错了(internal GDI+ error) [打印本页]

作者: Banane    时间: 2013-3-18 02:42
标题: demo出错了(internal GDI+ error)
Server Error in '/demo' Application.
GDI+ is not properly initialized (internal GDI+ error).
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.Runtime.InteropServices.ExternalException: GDI+ is not properly initialized (internal GDI+ error).

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:

[ExternalException (0x80004005): GDI+ is not properly initialized (internal GDI+ error).]   System.Drawing.Bitmap..ctor(Stream stream) +379710   System.Drawing.ToolboxBitmapAttribute..cctor() +179[TypeInitializationException: The type initializer for 'System.Drawing.ToolboxBitmapAttribute' threw an exception.]   System.Reflection.CustomAttribute._CreateCaObject(Void* pModule, Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) +0   System.Reflection.CustomAttribute.CreateCaObject(Module module, RuntimeMethodHandle ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) +63   System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +604   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) +129   System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) +65   System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type) +133   System.ComponentModel.ReflectedTypeData.GetAttributes() +583   System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() +58   System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType) +32   System.Web.UI.ViewStateModeByIdAttribute.IsEnabled(Type type) +110   System.Web.UI.Control.SaveViewStateRecursive() +242   System.Web.UI.Control.SaveViewStateRecursive() +106   System.Web.UI.Control.SaveViewStateRecursive() +106   System.Web.UI.Page.SaveAllState() +168   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1099


Version Information: Microsoft .NET Framework Version:2.0.50727.3643; ASP.NET Version:2.0.50727.3634

作者: sanshi    时间: 2013-3-18 02:57
这个貌似是Asp.Net 2.0的一个BUG,微软官方有Hotfix:

http://stackoverflow.com/questio ... -internal-gdi-error
http://support.microsoft.com/kb/975410

On a Microsoft ASP.NET 2.0 website, you use a control that has the ToolboxBitmap attribute defined. When you access this website, you intermittently receive an exception error message that resembles the following:
[ExternalException (0x80004005): GDI+ is not properly initialized (internal GDI+ error).]
System.Drawing.Bitmap..ctor(Stream stream) +376766
System.Drawing.ToolboxBitmapAttribute..cctor() +179

[TypeInitializationException: The type initializer for 'System.Drawing.ToolboxBitmapAttribute' threw an exception.]

Note The ToolboxBitmap attribute lets you specify an icon to represent a control in a container. For more information, see the "References" section.

作者: sanshi    时间: 2013-3-18 02:59
不过令人不解的是,这个Hotfix居然不是公开的,需要联系微软客服人员获得:

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix.

作者: Banane    时间: 2013-3-18 03:02
M$脑子搭牢了
作者: sanshi    时间: 2013-3-18 03:09
暂时通过 iisreset 解决




欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/) Powered by Discuz! X3.4