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 611:        foreach (string currentIpAddress in ipAddresses.Split(','))
Line 612:        {
Line 613:            long ipNumberLong = objIPUtils.GetIp2Long(currentIpAddress);
Line 614:
Line 615:            if (isIpBlacklist(ipNumberLong))

Source File: d:\wwwroot\Out_Wpl\Detail.master.cs    Line: 613

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14535598
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +174
   WFLBusinessLibrary.Utilities.IPUtils.GetIp2Long(String ip) in C:\Files\WorldLibrary\maincodes\WFLBusinessLibrary\Utilities\IPUtils.cs:31
   Detail.Page_Init(Object sender, EventArgs e) in d:\wwwroot\Out_Wpl\Detail.master.cs:613
   System.Web.UI.Control.OnInit(EventArgs e) +108
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Control.InitRecursive(Control namingContainer) +380
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


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