Glimpse/Glimpse — Issue #158: NullReferenceException in NopCommerce 2.4
Author: avatel
Created: 2012-02-09 10:32:23+00:00
State: open

Reated to following error reported by Stephan
http://getglimpse.uservoice.com/forums/112413-general/suggestions/2511728-support-for-nopcommerce

Same error for me under NopCommerce 2.4 :

```
[NullReferenceException: Object reference not set to an instance of an object]
Nop.Web.Framework.ViewEngines.Razor.WebViewPage`1.get_Layout() in f:\Own\NopCommerce\Sources\src\Presentation\Nop.Web.Framework\ViewEngines\Razor\WebViewPage.cs:112
System.Web.WebPages.WebPageBase.PopContext() +88
Glimpse.Mvc3.Plumbing.GlimpseView.Render(ViewContext viewContext, TextWriter writer) +257
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +383
Castle.Proxies.ControllerActionInvokerProxy.InvokeActionResult_callback(ControllerContext controllerContext, ActionResult actionResult) +20
Castle.DynamicProxy.AbstractInvocation.Proceed() +71
Glimpse.Mvc3.Interceptor.InvokeActionResultInterceptor.Intercept(IInvocation invocation) +415
Castle.DynamicProxy.AbstractInvocation.Proceed() +315
System.Web.Mvc.<>c__DisplayClass1c.b__19() +32
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +818916
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +818916
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +818916
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +818916
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +818916
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +818916
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +265
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +818432
System.Web.Mvc.Controller.ExecuteCore() +159
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +335
System.Web.Mvc.<>c__DisplayClassb.b__5() +62
System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +20
System.Web.Mvc.<>c__DisplayClasse.b__d() +54
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +469
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375
```