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 2480:    Public Function ReplaceTrademarks(ByVal ToReplace As String) As String
Line 2481:
Line 2482:        ToReplace = ToReplace.Replace("{reg}", "<sup>®</sup>")
Line 2483:        ToReplace = ToReplace.Replace("{trade}", "<sup>™</sup>")
Line 2484:

Source File: C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\EU\Live\App_Code\modules\modGeneral.vb    Line: 2482

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   modGeneral.ReplaceTrademarks(String ToReplace) in C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\EU\Live\App_Code\modules\modGeneral.vb:2482
   step_3.DisplaySelectedBikeDetails(clsModel Model) in C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\EU\Live\step-3.aspx.vb:266
   step_3.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\websites\Finance Calculators\Harley-Davidson\EU\Live\step-3.aspx.vb:77
   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