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:                        while ((input = re.ReadLine()) != null)
Line 228:                        {
Line 229:                            Application[UserPv] = int.Parse(input);
Line 230:                        }
Line 231:

Source File: c:\inetpub\vhosts\thietkeweb.netcon.vn\httpdocs\App_Code\global.asax.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) +10185747
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +207
   global.Session_Start(Object sender, EventArgs e) in c:\inetpub\vhosts\thietkeweb.netcon.vn\httpdocs\App_Code\global.asax.cs:229
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +11295676
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +366
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1281
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +85
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +263


Version Information: Microsoft .NET Framework Version:2.0.50727.8813; ASP.NET Version:2.0.50727.8951