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 610:			
Line 611:			Dim NewPrice As String = ""
Line 612:			For Each Price As DataRow In BikePrice.Rows
Line 613:				NewPrice =  Price("DefaultPrice").ToString
Line 614:			Next

Source File: C:\inetpub\wwwroot\websites\Managed Cores\Yamaha\Live\advanced-yamaha-view-bike.aspx.vb    Line: 612

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   advanced_yamaha_view_bike.PopulateSantanderWidget(Int32 BikeID) in C:\inetpub\wwwroot\websites\Managed Cores\Yamaha\Live\advanced-yamaha-view-bike.aspx.vb:612
   advanced_yamaha_view_bike.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\websites\Managed Cores\Yamaha\Live\advanced-yamaha-view-bike.aspx.vb:24
   System.Web.UI.Control.OnLoad(EventArgs e) +98
   System.Web.UI.Control.LoadRecursive() +153
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4081


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