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 168:        kat_yeni.KategoriAdi = kategori_adi;
Line 169:        kat_yeni.KategoriID = Convert.ToInt16(kategori_id);
Line 170:        kat_yeni.UstkategoriID = Convert.ToInt16(akatid_don(kategoriler_tumu, kategori_id));
Line 171:        yaz_kategoriler.Add(kat_yeni);
Line 172:

Source File: c:\inetpub\vhosts\izmirticaret.com.tr\httpdocs\urun-gruplarimiz.aspx.cs    Line: 170

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14616698
   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) in c:\inetpub\vhosts\izmirticaret.com.tr\httpdocs\urun-gruplarimiz.aspx.cs:170
   urun_gruplarimiz.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\izmirticaret.com.tr\httpdocs\urun-gruplarimiz.aspx.cs:80
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1602


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