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 549:        try
Line 550:        {
Line 551:            Svalue = parentNode[0].Attributes[return_Field_CaseSenstive].Value;
Line 552:        }
Line 553:        finally

Source File: d:\inetpub\vhosts\citylighttours-2851.package\citylighttours.com\wwwroot\App_Code\DataModel.cs    Line: 551

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   DataModel.Xml_get_String_Value(String filename, String xpath_CaseSenstive, String return_Field_CaseSenstive) in d:\inetpub\vhosts\citylighttours-2851.package\citylighttours.com\wwwroot\App_Code\DataModel.cs:551
   Default_ar.FillCart(String path, String xpath) in d:\inetpub\vhosts\citylighttours-2851.package\citylighttours.com\wwwroot\Default_ar.aspx.cs:45
   Default_ar.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\citylighttours-2851.package\citylighttours.com\wwwroot\Default_ar.aspx.cs:20
   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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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