www.insuranceproonline.com

Topics > Unexpected Errors > FAQ ID # 2

FAQ ID # 2
Unable to initialize Telerik due to font problem
Last Update : 2009/11/24
Print this FAQ

Question / Issue
The type initializer for 'Telerik.WinControls.UI.GridTableElement' threw an exception.

Answer / Solution

Problem:

InsurancePro encounters and error when loading a screen.  The details contains the following text:

-----------------------------------------------------------------------------
The type initializer for 'Telerik.WinControls.UI.GridTableElement' threw an exception.
----------------------------------------------------------------------------- 
-----------------------------------------------------------------------------
An Error has occurred in InsurancePro
-----------------------------------------------------------------------------
System.TypeInitializationException: The type initializer for 'Telerik.WinControls.UI.GridTableElement' threw an exception. ---> System.ArgumentException: Font 'Segoe UI' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize)
   at Telerik.WinControls.Themes.ControlDefault.GridView.InitializeComponent()
   at Telerik.WinControls.Themes.ControlDefault.GridView..ctor()
   at Telerik.WinControls.UI.GridTableElement..cctor()
   --- End of inner exception stack trace ---
   at Telerik.WinControls.UI.GridTableElement.Dispose(Boolean disposing)
   at Telerik.WinControls.RadComponentElement.Finalize()
-----------------------------------------------------------------------------
System.ArgumentException: Font 'Segoe UI' does not support style 'Regular'.
   at System.Drawing.Font.CreateNativeFont()
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize)
   at Telerik.WinControls.Themes.ControlDefault.GridView.InitializeComponent()
   at Telerik.WinControls.Themes.ControlDefault.GridView..ctor()
   at Telerik.WinControls.UI.GridTableElement..cctor()

Solution:

Note that the above text contains "Font 'Segoe UI'".  This could be any font and may happen in an environment that has a modified theme or font scheme different from the Windows default.  This may also be the result of malware or viruses.The solution is to contact your IT support and inform them of this situation.  We have found that reinstalling the font has worked in the past, but cannot guarantee that the same solution will solve this problem every time.



Direct Link to This FAQ
http://www.itcdataservices.com/support/IP6FAQ/?f=2

Tags
Telerik Unexpected Error Font

Back to Top