have you tried a few different pages? I have the same problem in 6.1.3 in that the mini profiler only seem to show for me on the homepage, so I would have to test a page and then revisit the homepage and look in miniprofilers history to get the info for the previous page.
not sure if that will help in your situation or not but maybe give it a try?
Yep - tried a few pages. Homepage, an basic page and a custom surface controller page on a partial and nothing. :(
Something i have noticed is if i attempt to do a post from the page and i have the debug querystring item and the profiler enabled I get a RTE:
I dont get this if i remove the dbug. So it looks like it is doing somethign with the profiler.
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
StackExchange.Profiling.MVCHelpers.ProfilingActionFilter.OnActionExecuting(ActionExecutingContext filterContext) in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\MVCHelpers\ProfilingActionFilter.cs:40
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +41
System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +21
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +253
System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +21
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +191
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324
System.Web.Mvc.Controller.ExecuteCore() +106
Mini Profiler not showing in 6.1.3
I have:
Dont get anything output from a standard umbraco page either.
have you tried a few different pages?
I have the same problem in 6.1.3 in that the mini profiler only seem to show for me on the homepage, so I would have to test a page and then revisit the homepage and look in miniprofilers history to get the info for the previous page.
not sure if that will help in your situation or not but maybe give it a try?
- Tim
Yep - tried a few pages. Homepage, an basic page and a custom surface controller page on a partial and nothing. :(
Something i have noticed is if i attempt to do a post from the page and i have the debug querystring item and the profiler enabled I get a RTE:
I dont get this if i remove the dbug. So it looks like it is doing somethign with the profiler.
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Are your View inheriting from UmbracoTemplatePage? I had the same problem and the Mini Profiler suddenly appeared when I added
to my _Layout.cshtml (the layout file used by my other views).
Normally I keep a clean layout file without any references to Umbraco, and that caused my problems.
I just came to the forum to ask the same question.
+1 for the _Layout.cshtml fix suggested above.
I was able to get this working in Umbraco 6.1.3 without changing what I inherit my view from. Just added this just before the closing body tag:
@Html.RenderProfiler()
I found that in the Umbraco source code: https://github.com/umbraco/Umbraco-CMS/blob/6.2.0/src/Umbraco.Web/Mvc/UmbracoViewPage.cs
For clarity, this is what my topmost view looks like (with unimportant stuff omitted):
IPage is just a custom interface for my custom model.
Answer for this here.
is working on a reply...