2009-12-01 2 views
3

ASP.NET 웹 사이트 무작위이 System.Drawing-오류가 발생합니다 (내부 GDI + 오류) 초기화되지 않았습니다. Bitmap..ctor (스트림 스트림) System.Drawing.ToolboxBitmapAttribute..cctor()System.Drawing :</p> <p>System.Runtime.InteropServices.ExternalException : System.Drawing GDI +가 제대로

Exception information: 
    Exception type: TypeInitializationException 
    Exception message: The type initializer for 'System.Drawing.ToolboxBitmapAttribute' threw an exception. 

Stack trace: at System.Reflection.CustomAttribute._CreateCaObject(Void* pModule, Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) 
    at System.Reflection.CustomAttribute.CreateCaObject(Module module, RuntimeMethodHandle ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) 
    at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) 
    at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) 
    at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) 
    at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type) 
    at System.ComponentModel.ReflectTypeDescriptionProvider.ReflectedTypeData.GetAttributes() 
    at System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() 
    at System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType) 
    at System.Web.UI.ThemeableAttribute.IsTypeThemeable(Type type) 
    at System.Web.UI.Control.ApplySkin(Page page) 
    at System.Web.UI.Control.InitRecursive(Control namingContainer) 
    at System.Web.UI.Control.InitRecursive(Control namingContainer) 
    at System.Web.UI.Control.InitRecursive(Control namingContainer) 
    at System.Web.UI.Control.InitRecursive(Control namingContainer) 
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

이유는 무엇입니까? .NET Framework 오류라고 생각합니다. 실제로 어떤 이미지도 만들려고하지 않습니다.

일시적인 해결책을 찾았습니다. IIS를 다시 시작하고 임시 ASP.NET 파일 ("% WINDIR % \ Microsoft.NET \ Framework \ v2.0.50727 \ Temporary ASP.NET Files")을 삭제하십시오. 하지만이 오류가 프로덕션 웹 서버에서 발생하면 임시로 충분하지 않습니다 ...

+0

한 가지 IIS에서 오류 메시지의 현지화입니다. 인터넷 검색 "GDI + : aa ei ole alustettu oikein (sisäinen GDI + -virhe)."은별로 유용하지 않습니다. : -/ –

답변

7

우연히 오늘 우리 서버 중 하나에서이 작업을 수행했습니다. ASP.NET의 알려진 문제이며 핫픽스가 http://support.microsoft.com/kb/975410에 있습니다. 이 설정을 변경

+0

안녕하세요! 답장을 보내 주셔서 감사합니다. 최근에이 오류를 보지 못했습니다. 그래서이 대답을 받아들입니다. –

1

나를 위해 그것을 고정의 Web.config에서 사실 에 : 상황이 어렵게

<validation validateIntegratedModeConfiguration="true" />