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 231:        kat_yeni.KategoriAdi = kategori_adi;
Line 232:        kat_yeni.KategoriID = Convert.ToInt16(kategori_id);
Line 233:        kat_yeni.UstkategoriID = Convert.ToInt16(akatid_don(kategoriler_tumu, kategori_id));
Line 234:        kat_yeni.Kurl = kurl;
Line 235:        yaz_kategoriler.Add(kat_yeni);

Source File: c:\inetpub\wwwroot\ugurderindondurucu.com.tr\urunler.aspx.cs    Line: 233

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14542542
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +174
   System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) +26
   System.Convert.ToInt16(String value) +64
   urun_gruplarimiz.ust_kategorileri_getir(String kategori_id, String kategori_adi, String kurl) in c:\inetpub\wwwroot\ugurderindondurucu.com.tr\urunler.aspx.cs:233
   urun_gruplarimiz.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\ugurderindondurucu.com.tr\urunler.aspx.cs:101
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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