Miniprofile and umbraco

I am running an instance of umbraco 7. But I can’t set up a mini profiler to work with it.

Install this on my global.asax:

    protected void Application_BeginRequest()
    {
        if (Request.IsLocal)
        {
            MiniProfiler.Start();
        }
    }

    protected void Application_EndRequest()
    {
        MiniProfiler.Stop();
    }

A handler is also defined on web.config:

 <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />

Any help really appreciated.

+4
source share
2 answers

MiniProfiler is built into Umbraco v6 and v7. You do not need to manually configure it. All you have to do is enable debug mode by setting the key in AppSettings:

<add key="umbracoDebugMode" value="true" />

Load page with row parameter ? umbDebug = true .

+8
source

global.asax http- umbraco , ? , . Web Activator. umbraco global.asax.cs.

0

Source: https://habr.com/ru/post/1530443/


All Articles