Submit a ticketCall us

WebinarFREE IT Monitoring Webcast

Don’t miss out on our webcast, Essential IT Monitoring with SolarWinds ipMonitor, where we will show you how to keep an eye on your IT environment from one centralized, affordable, and lightweight monitoring tool: SolarWinds® ipMonitor®.

Register now.

Home > Success Center > Web Performance Monitor (WPM) > WPM - Knowledgebase Articles > The type initializer for System.Drawing.ToolboxBitmapAttribute

The type initializer for System.Drawing.ToolboxBitmapAttribute

Created by Erica Gill, last modified by MindTouch on Jun 23, 2016

Views: 1,233 Votes: 0 Revisions: 6

Overview

The Web Console intermittently fails to load pages and displays the following error message:

The type initializer for 'System.Drawing.ToolboxBitmapAttribute
 

The Orionweb.log (located in C:\ProgramData\Solarwinds\Logs\Orion by default) shows the following entry:

3517-12-02 08:12:27,535 [76] ERROR ASP.global_asax - Application_Error(116800422f514f6489fab078d77e46a7)
System.TypeInitializationException: The type initializer for 'System.Drawing.ToolboxBitmapAttribute' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. ---> System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
   at System.Drawing.SafeNativeMethods.Gdip.Initialize()
   at System.Drawing.SafeNativeMethods.Gdip..cctor()
   --- End of inner exception stack trace ---
   at System.Drawing.SafeNativeMethods.Gdip.GdipCreateFontFromLogfontW(HandleRef hdc, Object lf, IntPtr& font)
   at System.Drawing.Font.FromLogFont(Object lf, IntPtr hdc)
   at System.Drawing.Font.FromHfont(IntPtr hfont)
   at System.Drawing.SystemFonts.get_DefaultFont()
   at System.Windows.Forms.Control.get_DefaultFont()
   at System.Windows.Forms.Control.get_Font()
   at System.Windows.Forms.AxHost.QuickActivate()
   at System.Windows.Forms.AxHost.ActivateAxControl()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.AxHost.EndInit()
   at SolarWinds.MapEngine.MappingControl.InitializeComponent()
   at SolarWinds.MapEngine.MappingControl..ctor()
   at MapImport.SaveMap(CreateMapParameters parameters)
   at SolarWinds.MapStudio.Web.MapRunner.ImportThreadProc(Object obj)
   --- End of inner exception stack trace ---
   at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs)
   at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
   at System.RuntimeType.GetCustomAttributes(Boolean inherit)
   at Infragistics.WebUI.Shared.UltraLicenseProvider.GetLicenseAttribute(Type type, Object instance, Boolean allowExceptions)
   at Infragistics.WebUI.Shared.UltraLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
   at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
   at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
   at Infragistics.WebUI.UltraWebGauge.UltraGauge..ctor()
   at SolarWinds.NPM.Web.Gauge.V1.BaseGaugeGenerator..ctor()
   at GaugePage.Page_Load(Object sender, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Environment

WPM 2.2 and earlier

Cause 

There is an issue with .Net and the Operating System.

Last modified

Tags

Classifications

Public