Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 996:          For Each nodeTrkptChild As XmlNode In nodeListTrkptChildren
Line 997:            If nodeTrkptChild.Name = "ele" Then
Line 998:              Decimal.TryParse(nodeTrkptChild.FirstChild.Value, dblEle)
Line 999:            ElseIf nodeTrkptChild.Name = "time" Then
Line 1000:              strTime = nodeTrkptChild.FirstChild.Value

Source File: D:\web\Groopy.co.il\App_Code\GpxMap.vb    Line: 998

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   GpxMap.ParseXml() in D:\web\Groopy.co.il\App_Code\GpxMap.vb:998
   GpxMap.BuildMapPoints() in D:\web\Groopy.co.il\App_Code\GpxMap.vb:931
   trackinfo.SetMidInfoBlock2() in D:\web\Groopy.co.il\trackinfo.aspx.vb:98
   trackinfo.Page_Load(Object sender, EventArgs e) in D:\web\Groopy.co.il\trackinfo.aspx.vb:28
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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