Server Error in '/sip' Application.

Input string was not in a correct format.

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.FormatException: Input string was not in a correct format.

Source Error:


Line 3634:                else
Line 3635:                {
Line 3636:                    vdataout = (vdataout + ("<tr><td class='text-left'>"
Line 3637:                                + (output_ar[0, ax] + ("</td><td>"
Line 3638:                                + (String.Format("{0:N0}", Convert.ToDecimal(output_ar[1, ax])) + ("</td><td><a href=\"rank_list.aspx?rank_label=patyear_&item_in="

Source File: d:\Inetpub\statsamerica\sip\App_Code\DataLayer.cs    Line: 3636

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14784004
   System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) +191
   System.Convert.ToDecimal(String value) +104
   DataLayer.sip_patents(String in_string) in d:\Inetpub\statsamerica\sip\App_Code\DataLayer.cs:3636
   form.AllTables.sip_allt(String in_string) in d:\Inetpub\statsamerica\sip\AllTables.aspx.cs:286
   form.AllTables.Page_Load(Object sender, EventArgs e) in d:\Inetpub\statsamerica\sip\AllTables.aspx.cs:271
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4081.0