Server Error in '/envgis' 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 1826:                        if (filename.Trim() == "Field Points".Trim())
Line 1827:                        {
Line 1828:                            x = Convert.ToDouble(dsAdd.Tables[filename].Rows[rcno]["long"]);
Line 1829:                            y = Convert.ToDouble(dsAdd.Tables[filename].Rows[rcno]["lat"]);
Line 1830:                        }

Source File: d:\Hosted Websites and Databases\AGISAC-GIS-WEBSITES\Environment\App_Code\Eggis_Class.cs    Line: 1828

Stack Trace:


[FormatException: Input string was not in a correct format.]
   System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) +12847671
   System.String.System.IConvertible.ToDouble(IFormatProvider provider) +49
   System.Convert.ToDouble(Object value) +31
   Eggis_Class.DisplayRecord() in d:\Hosted Websites and Databases\AGISAC-GIS-WEBSITES\Environment\App_Code\Eggis_Class.cs:1828
   mapngo.Page_Load(Object sender, EventArgs e) in d:\Hosted Websites and Databases\AGISAC-GIS-WEBSITES\Environment\mapngo.aspx.cs:58
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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