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 107:        mCat.Main_Category_ID = subCat.Sub_Category_Main_Category_ID
Line 108:        mCat.Select_By_Id()
Line 109:        If mCat.Main_Category_Type_ID = 2 Then
Line 110:            Response.Redirect("sayfa-bulunamadi")
Line 111:        End If

Source File: E:\websites\AnneBoyutuNet\Yazar-Detay.aspx.vb    Line: 109

Stack Trace:


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

[InvalidCastException: Conversion from string "" to type 'Double' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat) +198
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value) +11
   Yazar_Detay.getAuthorContent() in E:\websites\AnneBoyutuNet\Yazar-Detay.aspx.vb:109
   Yazar_Detay.Page_Load(Object sender, EventArgs e) in E:\websites\AnneBoyutuNet\Yazar-Detay.aspx.vb:15
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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