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 126:                <span class="d-block subtitle-1 pt-1"><%= reviewCount %> ADET KULLANICI DEĞERLENDİRMESİ</span>
Line 127:                <span class="d-block subtitle-1">Ortalama Puan: <%=reviewAverageRating %> 
Line 128:               <v-rating readonly half-increments value="<%=Replace((Math.Ceiling(2 * reviewAverageRating) / 2), ",", ".") %>" background-color="orange lighten-3" color="orange" dense></v-rating></span>
Line 129:           </v-sheet>
Line 130:       </v-col>

Source File: C:\inetpub\Websites\LensAl.com\LensAlV5Website\ProductReviews.aspx    Line: 128

Stack Trace:


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

[InvalidCastException: Conversion from string "" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +256
   Microsoft.VisualBasic.CompilerServices.Operators.MultiplyObject(Object Left, Object Right) +1884
   ASP.productreviews_aspx.__RenderContent1(HtmlTextWriter __w, Control parameterContainer) in C:\inetpub\Websites\LensAl.com\LensAlV5Website\ProductReviews.aspx:128
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   ASP.site_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\inetpub\Websites\LensAl.com\LensAlV5Website\Site.Master:219
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +169
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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