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 227:        if (yildiz.Length == 1)
Line 228:        {
Line 229:            tam = Convert.ToInt32(yildiz[0]);
Line 230:            kusur = 0;
Line 231:        }

Source File: c:\iso\web\hazirkod.com\App_Code\General.cs    Line: 229

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +308
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +207
   System.Convert.ToInt32(String value) +46
   General.Yildiz(String deger) in c:\iso\web\hazirkod.com\App_Code\General.cs:229
   hazirkod.HK_load() in c:\iso\web\hazirkod.com\hazirkod.aspx.cs:95
   hazirkod.Page_Load(Object sender, EventArgs e) in c:\iso\web\hazirkod.com\hazirkod.aspx.cs:51
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +137
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2524


Version Information: Microsoft .NET Framework Version:2.0.50727.8966; ASP.NET Version:2.0.50727.8962