This is a migrated thread and some comments may be shown as answers.

RadChart Input value is invalid

7 Answers 38 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 27 Oct 2010, 09:59 AM
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

7 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 29 Oct 2010, 01:31 PM
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
0
Shukhrat Nekbaev
Top achievements
Rank 1
answered on 01 Nov 2010, 10:08 AM
Facing same issue for Finnish
0
Nick
Top achievements
Rank 1
answered on 01 Nov 2010, 10:45 AM

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

0
Shukhrat Nekbaev
Top achievements
Rank 1
answered on 01 Nov 2010, 10:47 AM
Yes, I found that fix also, but everytime I use wizard this comes back, not very big issue, but still...
0
Khandu
Top achievements
Rank 1
answered on 30 Aug 2013, 08:41 AM
Facing same problem when changing the language and region of PC System
0
Khandu
Top achievements
Rank 1
answered on 30 Aug 2013, 08:42 AM
RadChart  throws error "input value is not valid " when changing the Language of machine
0
Ves
Telerik team
answered on 04 Sep 2013, 08:18 AM
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.
Tags
Chart (Obsolete)
Asked by
Nick
Top achievements
Rank 1
Answers by
Ves
Telerik team
Shukhrat Nekbaev
Top achievements
Rank 1
Nick
Top achievements
Rank 1
Khandu
Top achievements
Rank 1
Share this question
or