elad2109 Report post Posted April 28, 2011 (edited) Hi, I wrote some c# code to create a new 3D FusionChart. For a start I tried to show a pie with one data set: value = "100" lable="100" toolText="100" But i get the following error: Line 92: return; Line 93: Line 94: base.Render(writer); Line 95: } Line 96: Stack Trace: [FormatException: Input string was not in a correct format.] System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10162435 System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +238 System.Decimal.Parse(String s, IFormatProvider provider) +42 ComponentArt.Web.UI.Grid.GetClientValue(Object o, GridColumn oColumn, Object oDisplayValue) +2789 ComponentArt.Web.UI.Grid.GenerateItems(GridItemCollection arItems, Int32 iLevel) +1411 ComponentArt.Web.UI.Grid.GenerateStorage(GridItemCollection arItems, Int32 iLevel) +175 ComponentArt.Web.UI.Grid.ComponentArtRender(HtmlTextWriter output) +13497 ComponentArt.Web.UI.WebControl.Render(HtmlTextWriter output) +132 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +13 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +42 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) +288 System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) +53 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 Conduit.ControlPanel.Analytics.Controls.Analytics.Render(HtmlTextWriter writer) in D:\Conduit\RnD\Server\Services\Analytics\ControlPanel.Analytics\Dev-1.4\ControlPanel.Analytics\Controls\Analytics.ascx.cs:94 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240 System.Web.UI.Page.Render(HtmlTextWriter writer) +38 System.FormatException was unhandled by user code Message="Input string was not in a correct format." Source="mscorlib" StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) at System.Decimal.Parse(String s, IFormatProvider provider) at ComponentArt.Web.UI.Grid.GetClientValue(Object o, GridColumn oColumn, Object oDisplayValue) at ComponentArt.Web.UI.Grid.GenerateItems(GridItemCollection arItems, Int32 iLevel) at ComponentArt.Web.UI.Grid.GenerateStorage(GridItemCollection arItems, Int32 iLevel) at ComponentArt.Web.UI.Grid.ComponentArtRender(HtmlTextWriter output) at ComponentArt.Web.UI.WebControl.Render(HtmlTextWriter output) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) at System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at Conduit.ControlPanel.Analytics.Controls.Analytics.Render(HtmlTextWriter writer) in D:\Conduit\RnD\Server\Services\Analytics\ControlPanel.Analytics\Dev-1.4\ControlPanel.Analytics\Controls\Analytics.ascx.cs:line 94 at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Page.Render(HtmlTextWriter writer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) InnerException: how can I figure out what is the exact problematic parsing? Edited April 28, 2011 by elad2109 Share this post Link to post Share on other sites
Rahul Kumar Report post Posted April 29, 2011 Hi, Could you please send us the code also so that we can look for the issue? Share this post Link to post Share on other sites
elad2109 Report post Posted April 30, 2011 Hi, Could you please send us the code also so that we can look for the issue? Just solved the issue. I had defined a cloumn type incorrectly and thus the grid throw rendering error. Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 2, 2011 Hi, We are glad to know that you have managed to solve your issue. Keep FusionCharting! Share this post Link to post Share on other sites