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 4637:    Public Shared Function ReplaceTradeMarks_WithNothing(ByVal ToReplace As String) As String
Line 4638:
Line 4639:        ToReplace = ToReplace.Replace("{reg}", "")
Line 4640:        ToReplace = ToReplace.Replace("{trade}", "")
Line 4641:

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

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   modCore.ReplaceTradeMarks_WithNothing(String ToReplace) in C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\Global\LIVE\App_Code\modules\modCore.vb:4639
   modCore.ProcessTemplateReplace(String Template, String[] ObjectCollection, Page Page_) in C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\Global\LIVE\App_Code\modules\modCore.vb:513
   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