RadChart Input value is invalid

Thread is closed for posting
8 posts, 0 answers
  1. Nick
    Nick avatar
    2 posts
    Member since:
    Oct 2010

    Posted 27 Oct 2010 Link to this post

    We have developed an application which uses Telerik Radchart controls and it all works successfully on 2 webservers, one here in South Africa (culture EN-SA) and one in the UK (En-UK). However, when is was deployed to a clean Windows 2008 server in Italy (culture IT-Italian) the error below occurs. Thinking that this was culture specific I changed it to En-SA but we still get the error. There was a similar post on your system from Sep 2009 but no solution was posted so I am asking for your help.

    Server Error in '/MagVLT' Application.


    Input value is invalid

    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: Input value is invalid

    Source Error:

     

    Line 434:                                </td>

    Line 435:                                <td>

    Line 436:                                    <telerik:RadChart ID="rdcTotalBet" runat="server" DataSourceID="SqlDataSource1" DefaultType="Line"

    Line 437:                                        Skin="Mac">

    Line 438:                                        <Series>


    Source File: c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx    Line: 436

    Stack Trace:

     

    [ArgumentException: Input value is invalid]

       Telerik.Charting.Styles.MarginsConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) +638

       System.ComponentModel.TypeConverter.ConvertFromInvariantString(String text) +63

       Telerik.Charting.Styles.ChartMargins.Parse(String value, CultureInfo culture) +46

       ASP.cemshome_aspx.__BuildControl__control154(StyleExtendedLabel __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:436

       ASP.cemshome_aspx.__BuildControl__control153(ChartLegend __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:436

       ASP.cemshome_aspx.__BuildControlrdcTotalBet() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:436

       ASP.cemshome_aspx.__BuildControl__control115() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:429

       ASP.cemshome_aspx.__BuildControl__control114(HtmlTableCellCollection __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:428

       ASP.cemshome_aspx.__BuildControl__control113() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:428

       ASP.cemshome_aspx.__BuildControl__control112(HtmlTableRowCollection __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:427

       ASP.cemshome_aspx.__BuildControltabRevenue() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:427

       ASP.cemshome_aspx.__BuildControl__control3(Control __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:10

       System.Web.UI.UpdatePanel.CreateContents() +97

       ASP.cemshome_aspx.__BuildControl__control2() in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:10

       ASP.cemshome_aspx.__BuildControlContent1(Control __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSHome.aspx:9

       ASP.cemsmaster_master.__BuildControlcphDetail() in c:\inetpub\wwwroot\MagVLT\CEMSMaster.master:238

       ASP.cemsmaster_master.__BuildControlform1() in c:\inetpub\wwwroot\MagVLT\CEMSMaster.master:55

       ASP.cemsmaster_master.__BuildControlTree(cemsmaster_master __ctrl) in c:\inetpub\wwwroot\MagVLT\CEMSMaster.master:1

       ASP.cemsmaster_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\magvlt\9729e21d\12fe1d48\App_Web_cemsmaster.master.cdcab7d2.szqdenly.0.cs:0

       System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1305

       System.Web.UI.Page.get_Master() +69

       System.Web.UI.Page.ApplyMasterPage() +18

       System.Web.UI.Page.PerformPreInit() +58

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1256

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4205

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 29 Oct 2010 Link to this post

    Hi Nick,

    Indeed, we never received any further details in the case you have found. However, we have had similar reports, which have turned out to be culture-specific issues. When changing any margins specified within the chart declaration to integer values, just to eliminate the decimal separator, they have been resolved. Please, give this suggestion a try and let us know how it goes.

    Sincerely,
    Ves
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shukhrat Nekbaev
    Shukhrat Nekbaev avatar
    73 posts
    Member since:
    Oct 2010

    Posted 01 Nov 2010 Link to this post

    Facing same issue for Finnish
  5. Nick
    Nick avatar
    2 posts
    Member since:
    Oct 2010

    Posted 01 Nov 2010 Link to this post

    Hi Ves

     

    Thanks for your reply.

    I did find that some Margin values (<Appearance Dimensions-Margins=) were declared as percentages and I've changed them to integer px values instead. However I have not been authorised to deploy this change on the Italian machine - I will let you know of the results when I have been able to do this.

    Cheers

  6. Shukhrat Nekbaev
    Shukhrat Nekbaev avatar
    73 posts
    Member since:
    Oct 2010

    Posted 01 Nov 2010 Link to this post

    Yes, I found that fix also, but everytime I use wizard this comes back, not very big issue, but still...
  7. Khandu
    Khandu avatar
    2 posts
    Member since:
    Mar 2013

    Posted 30 Aug 2013 Link to this post

    Facing same problem when changing the language and region of PC System
  8. Khandu
    Khandu avatar
    2 posts
    Member since:
    Mar 2013

    Posted 30 Aug 2013 Link to this post

    RadChart  throws error "input value is not valid " when changing the Language of machine
  9. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 04 Sep 2013 Link to this post

    Hi Khandu,

    As mentioned above, this might be caused by floating point values in the markup. Please, make sure you use integer values in markup or set them in code behind.

    Best regards,
    Ves
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017