FIX: Exception error message in an ASP.NET 2.0 website when you use a control that has the ToolboxBitmap attribute defined: "GDI+ is not properly initialized (internal GDI+ error)"

Symptoms

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.

Resolution

Hotfix information

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. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have the Microsoft .NET Framework 2.0 Service Pack 2 or the .NET Framework 3.5 Service Pack 1 installed on a computer that is running one of the following operating systems:
  • Windows XP
  • Windows Server 2003
  • Windows Vista Service Pack 2
  • Windows Server 2008 Service Pack 2
  • Windows Server 2008 R2
  • Windows 7

Restart requirement

You must restart the computer if any of the affected files are being used when you install this hotfix. If you do not want to restart the computer, shut down all ASP.NET Web sites before you install this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For all supported x86-based versions of the .NET Framework 2.0 in Windows XP or Windows Server 2003
File nameFile versionFile sizeDateTimePlatform
System.drawing.dll2.0.50727.4413626,68820-Oct-200905:34x86
For all supported x64-based versions of the .NET Framework 2.0 in Windows XP or Windows Server 2003
File nameFile versionFile sizeDateTimePlatform
System.drawing.dll2.0.50727.4413626,68820-Oct-200905:07x64
For all supported Itanium-based versions of the .NET Framework 2.0 in Windows XP or Windows Server 2003
File nameFile versionFile sizeDateTimePlatform
System.drawing.dll2.0.50727.4413626,68820-Oct-200905:07IA-64
For all supported x86-based versions, x64-based versions, and Itanium-based versions of the .NET Framework 2.0 in Windows Vista or in Windows Server 2008
File nameFile versionFile sizeDateTimePlatform
System.drawing.dll2.0.50727.5050626,68823-Sep-201013:31x86
For all supported x86-based version and x64-based versions of the .NET Framework 2.0 in Windows 7 or in Windows Server 2008 R2
File nameFile versionFile sizeDateTimePlatform
System.drawing.dll2.0.50727.5652626,68811-Feb-201123:31x86

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References

For more information about the ToolboxBitmapAttribute class, visit the following Microsoft Developer Network (MSDN) Web site:For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

خصائص

رقم الموضوع: 975410 - آخر مراجعة: 29‏/03‏/2011 - المراجعة: 1

تعليقات