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 524:                Next
Line 525:
Line 526:                Template = Replace(Template, "{FINISH_ID}", SelectedFinish.Item("ValueID"))
Line 527:                Template = Replace(Template, "{RAW_FINISH_NAME}", SelectedFinish.Item("ShortValue"))
Line 528:

Source File: C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\Global\LIVE\App_Code\modules\modCore.vb    Line: 526

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   modCore.ProcessTemplateReplace(String Template, String[] ObjectCollection, Page Page_) in C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\Global\LIVE\App_Code\modules\modCore.vb:526
   modCore.ProcessTemplates(Page Page_, ControlCollection ControlCollection, HttpRequest Request_) in C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\Global\LIVE\App_Code\modules\modCore.vb:104
   calculate_finance.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\Global\LIVE\calculate-finance.aspx.vb:48
   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