Server Error in '/' Application.

An invalid IP address was specified.

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: An invalid IP address was specified.

Source Error:

Line 838:        private static byte[] GetIpBytes(string ipAddress)
Line 839:        {
Line 840:            return System.Net.IPAddress.Parse(ipAddress).GetAddressBytes();
Line 841:        }
Line 842:

Source File: e:\inetpub\wwwroot\991\App_Code\UI\CustomBasePage.cs    Line: 840

Stack Trace:

[FormatException: An invalid IP address was specified.]
   System.Net.IPAddress.InternalParse(String ipString, Boolean tryParse) +6867846
   System.Net.IPAddress.Parse(String ipString) +12
   Com.NineNineOne.Web.UI.CustomBasePage.GetIpBytes(String ipAddress) in e:\inetpub\wwwroot\991\App_Code\UI\CustomBasePage.cs:840
   Com.NineNineOne.Web.UI.CustomBasePage.IsIpInCidr(String ipAddress, String cidr, Int32 prefixLength) in e:\inetpub\wwwroot\991\App_Code\UI\CustomBasePage.cs:813
   Com.NineNineOne.Web.UI.CustomBasePage.IsIpInCidrRanges(String ipAddress, Int32& delay) in e:\inetpub\wwwroot\991\App_Code\UI\CustomBasePage.cs:783
   Com.NineNineOne.Web.UI.CustomBasePage.OnPreInit(EventArgs e) in e:\inetpub\wwwroot\991\App_Code\UI\CustomBasePage.cs:212
   Buy_index.OnPreInit(EventArgs e) in e:\inetpub\wwwroot\991\Buy\index.aspx.cs:51
   System.Web.UI.Page.PerformPreInit() +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +302


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