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 531:        try
Line 532:        {
Line 533:            ID = int.Parse(parentNode[0].Attributes[return_Field_CaseSenstive].Value);
Line 534:        }
Line 535:        finally

Source File: d:\inetpub\vhosts\makany-5918.package\makanydesign.com\wwwroot\App_Code\DataModel.cs    Line: 533

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   DataModel.Xml_get_Int_Value(String filename, String xpath_CaseSenstive, String return_Field_CaseSenstive) in d:\inetpub\vhosts\makany-5918.package\makanydesign.com\wwwroot\App_Code\DataModel.cs:533
   Goldencontols_DepDetails.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\makany-5918.package\makanydesign.com\wwwroot\makany\Goldencontols\DepDetails.ascx.cs:28
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Control.LoadRecursive() +200
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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