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 115:        If VED_Cost <> "" Then VED_Cost = CSng(VED_Cost) Else VED_Cost = 0.0
Line 116:
Line 117:        Dim OTR_Price As Single = Asset.DefaultPrice + CSng(ModelColourData.Rows(0).Item("PriceOffset")) + FirstRegistrationFee + VED_Cost
Line 118:
Line 119:        If (Page.RouteData.Values("modeltype") = "offroad") Then

Source File: C:\inetpub\wwwroot\websites\Finance Calculators\Yamaha\LIVE-SANTANDER\generate-quote.aspx.vb    Line: 117

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   generate_quote.PopulateSCUKLiteral(clsAssetItem Asset) in C:\inetpub\wwwroot\websites\Finance Calculators\Yamaha\LIVE-SANTANDER\generate-quote.aspx.vb:117
   generate_quote.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\websites\Finance Calculators\Yamaha\LIVE-SANTANDER\generate-quote.aspx.vb:20
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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