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

Source File: C:\inetpub\wwwroot\websites\Managed Cores\Yamaha\Live\model-enquire.aspx.vb    Line: 226

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   model_enquire.InitializePage() in C:\inetpub\wwwroot\websites\Managed Cores\Yamaha\Live\model-enquire.aspx.vb:226
   model_enquire.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\websites\Managed Cores\Yamaha\Live\model-enquire.aspx.vb:41
   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