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 861:		Dim GroupName as string = zGetStringValueFromDBTable("SELECT Name FROM catalogue_groups WHERE ID = " & CurrentBike.HomeGroupID, "content")
Line 862:		
Line 863:		If GetXMLSiteProps(Me.Page, "LOCATOR_FILTER_653").Contains(GroupName) OR  GetXMLSiteProps(Me.Page, "LOCATOR_FILTER_1726").Contains(GroupName) Then
Line 864:			Response.Redirect("/yamaha-new-bikes")
Line 865:		End If

Source File: C:\inetpub\wwwroot\websites\Managed Cores\Yamaha\Live\model-test-ride.aspx.vb    Line: 863

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   model_test_ride.InitializePage() in C:\inetpub\wwwroot\websites\Managed Cores\Yamaha\Live\model-test-ride.aspx.vb:863
   model_test_ride.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\websites\Managed Cores\Yamaha\Live\model-test-ride.aspx.vb:35
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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