FineUI 官方论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

本论坛已关闭(禁止注册、发帖和回复)
请移步 三石和他的朋友们

FineUI首页 WebForms - MVC & Core - JavaScript 常见问题 - QQ群 - 十周年征文活动

FineUI(开源版) 下载源代码 - 下载空项目 - 获取ExtJS - 文档 在线示例 - 版本更新 - 捐赠作者 - 教程

升级到 ASP.NET Core 3.1,快、快、快! 全新ASP.NET Core,比WebForms还简单! 欢迎加入【三石和他的朋友们】(基础版下载)

搜索
查看: 2934|回复: 4
打印 上一主题 下一主题

demo出错了(internal GDI+ error)

[复制链接]
跳转到指定楼层
楼主
发表于 2013-3-18 02:42:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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
沙发
发表于 2013-3-18 02:57:38 | 只看该作者
这个貌似是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.
板凳
发表于 2013-3-18 02:59:03 | 只看该作者
不过令人不解的是,这个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.
地板
 楼主| 发表于 2013-3-18 03:02:58 | 只看该作者
M$脑子搭牢了
5#
发表于 2013-3-18 03:09:13 | 只看该作者
暂时通过 iisreset 解决
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|FineUI 官方论坛 ( 皖ICP备2021006167号-1 )

GMT+8, 2024-11-29 04:42 , Processed in 0.044174 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表