Ticket Q145128
Visible to All Users

Font 'Tahoma' does not support style 'Regular'.

created 16 years ago

i recently got this following problem when i publish my asp.net application on our server, but it works in local without this following error, just couldnt understand
Server Error in '/testiss' Application.
--------------------------------------------------------------------------------
Font 'Tahoma' does not support style 'Regular'.
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.ArgumentException: Font 'Tahoma' does not support style 'Regular'.
Source Error:
Line 9: <div id="chartHour">
Line 10:
Line 11: <dxchartsui:WebChartControl ID="webChartHour" Width="700px" runat="server" Height="400px" PaletteName="HourSold">
Line 12: <SeriesSerializable>
Line 13: <cc1:Series LabelTypeName="PieSeriesLabel" Name="Series 1" PointOptionsTypeName="PiePointOptions"

Source File: c:\Inetpub\wwwroot\testISS\masterpages\chartHours.aspx Line: 11
Stack Trace:
[ArgumentException: Font 'Tahoma' does not support style 'Regular'.]
   System.Drawing.Font.CreateNativeFont() +435993
   System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) +214
   System.Drawing.Font…ctor(String familyName, Single emSize) +99
   DevExpress.XtraCharts.Native.DefaultFonts…cctor() +30
[TypeInitializationException: The type initializer for 'DevExpress.XtraCharts.Native.DefaultFonts' threw an exception.]
   DevExpress.XtraCharts.SeriesLabelBase…ctor() +258
   DevExpress.XtraCharts.SideBySideBarSeriesView.CreateSeriesLabel() +20
   DevExpress.XtraCharts.SeriesBase.CreateNewSeriesLabel(SeriesViewBase view) +14
   DevExpress.XtraCharts.SeriesBase.SetView(SeriesViewBase view, Boolean assignParams) +335
   DevExpress.XtraCharts.SeriesBase…ctor(ViewType viewType) +318
   DevExpress.XtraCharts.Native.Chart…ctor(IChartContainer container) +697
   DevExpress.XtraCharts.Web.WebChartControl…ctor() +170
   ASP.masterpages_charthours_aspx.__BuildControlwebChartHour() in c:\Inetpub\wwwroot\testISS\masterpages\chartHours.aspx:11
   ASP.masterpages_charthours_aspx.__BuildControlContent1(Control __ctrl) in c:\Inetpub\wwwroot\testISS\masterpages\chartHours.aspx:7
   System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12
   ASP.masterpages_projectmasterpage_master.__BuildControlContentPlaceHolder2() in c:\Inetpub\wwwroot\testISS\masterpages\projectMasterPage.master:79
   ASP.masterpages_projectmasterpage_master.__BuildControlprojectForm() in c:\Inetpub\wwwroot\testISS\masterpages\projectMasterPage.master:17
   ASP.masterpages_projectmasterpage_master.__BuildControlTree(masterpages_projectmasterpage_master __ctrl) in c:\Inetpub\wwwroot\testISS\masterpages\projectMasterPage.master:1
   ASP.masterpages_projectmasterpage_master.FrameworkInitialize() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\testiss\a3cb7408\34632e73\App_Web_3lm4muem.0.cs:0
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +31
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1978592
   System.Web.UI.Page.get_Master() +48
   System.Web.UI.Page.ApplyMasterPage() +18
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +543

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Comments (3)
DevExpress Support Team 16 years ago

    Hi Tao,
    Please make sure the Tahoma font is installed on your server (Start->Settings->Control Panel->Fonts) and install it if it's required.
    Please try this solution, and let us know the results.
    Thanks,
    Andrew

      Hi
      that is problem, i have fixed it…
      thank you very much
      Tao

        problem solved

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.