Server Error in '/' 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 66:             threadNode.Value = row("ID").ToString()
Line 67: 
Line 68:             If Session("CatalogRegionId") = -1 Then
Line 69:                 countProduct = AdvantShop.Regional.GetCountProductCategoryFromCountry(row("ID").ToString, Session("CatalogCountryId"))
Line 70: 

Source File: C:\_SITE\flowersworld.ru\UserControls\CatalogView.ascx.vb    Line: 68

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) +714254
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +114

[InvalidCastException: Conversion from string "" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +714583
   Microsoft.VisualBasic.CompilerServices.Operators.CompareObject2(Object Left, Object Right, Boolean TextCompare) +1124
   Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual(Object Left, Object Right, Boolean TextCompare) +24
   UserControls_CatalogView.PopulateNodes() in C:\_SITE\flowersworld.ru\UserControls\CatalogView.ascx.vb:68
   UserControls_CatalogView.Page_Load(Object sender, EventArgs e) in C:\_SITE\flowersworld.ru\UserControls\CatalogView.ascx.vb:197
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Control.LoadRecursive() +191
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8000; ASP.NET Version:2.0.50727.8001