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 174:                Dim MemberID As Integer = Page_.Session("MEMBER_ID")
Line 175:
Line 176:                For Each StyleSheet As String In Template.Split(Environment.NewLine)
Line 177:
Line 178:                    If (StyleSheet.Contains("<link")) Then

Source File: C:\inetpub\wwwroot\websites\Harley-Davidson\CPO France\LIVE_NEW\App_Code\modules\modCore.vb    Line: 176

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\Harley-Davidson\CPO France\LIVE_NEW\App_Code\modules\modCore.vb:176
   modCore.ProcessTemplates(Page Page_, ControlCollection ControlCollection, HttpRequest Request_) in C:\inetpub\wwwroot\websites\Harley-Davidson\CPO France\LIVE_NEW\App_Code\modules\modCore.vb:111
   modCore.ProcessTemplates(Page Page_, ControlCollection ControlCollection, HttpRequest Request_) in C:\inetpub\wwwroot\websites\Harley-Davidson\CPO France\LIVE_NEW\App_Code\modules\modCore.vb:101
   category_page.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\websites\Harley-Davidson\CPO France\LIVE_NEW\category-page.aspx.vb:13
   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