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:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Revindex.Dnn.RevindexStorefront.ProductListView.Page_Init(Object sender, EventArgs e) +3181

[ModuleLoadException: Cannot load template "CustomGrid". Please verify display template exists and does not contain syntax error. Object reference not set to an instance of an object.]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +623

[PageLoadException: Cannot load template "CustomGrid". Please verify display template exists and does not contain syntax error. Object reference not set to an instance of an object.]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +449
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc) +101
   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) +784
   DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc) +42
   Revindex.Dnn.RevindexStorefront.ProductListView.Page_Init(Object sender, EventArgs e) +6266
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnInit(EventArgs e) +97
   System.Web.UI.UserControl.OnInit(EventArgs e) +87
   DotNetNuke.Entities.Modules.PortalModuleBase.OnInit(EventArgs e) +209
   Revindex.Dnn.RevindexStorefront.StorefrontPortalModuleBase.OnInit(EventArgs e) +186
   System.Web.UI.Control.InitRecursive(Control namingContainer) +142
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +190
   System.Web.UI.ControlCollection.Add(Control child) +87
   DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content) +1039
   DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() +121
   System.Web.UI.Control.EnsureChildControls() +97
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +218
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<PreRenderRecursiveInternalAsync>d__249.MoveNext() +1166
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.Util.WithinCancellableCallbackTaskAwaiter.GetResult() +32
   System.Web.UI.<ProcessRequestMainAsync>d__523.MoveNext() +7482

[PageLoadException: Cannot load template "CustomGrid". Please verify display template exists and does not contain syntax error. Object reference not set to an instance of an object.]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +449
   DotNetNuke.Framework.PageBase.OnError(EventArgs e) +724
   System.Web.UI.Page.HandleError(Exception e) +86
   System.Web.UI.<ProcessRequestMainAsync>d__523.MoveNext() +9165
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.Util.WithinCancellableCallbackTaskAwaiter.GetResult() +32
   System.Web.UI.<ProcessRequestAsync>d__515.MoveNext() +525
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.UI.<ProcessRequestAsync>d__554.MoveNext() +507
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +72
   System.Web.UI.Page.AsyncPageEndProcessRequest(IAsyncResult result) +76
   ASP.default_aspx.EndProcessRequest(IAsyncResult ar) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9851493
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


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