Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • antao 81 posts 371 karma points
    Mar 06, 2014 @ 16:33
    antao
    0

    Miniprofiler y u no work!

    I know the great miniprofiler is added on umbraco since version 6.1.2... I'm working with a v7 in this case, I've set this on my global.asax:

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

    The @MiniProfiler.RenderIncludes() is also added in my _layout.cshtml.

    I've added the handler on the web.config

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

    But it doesn't seem to work. Any help is appreciated! (:

    Thanks.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 27, 2014 @ 19:30
    Jan Skovgaard
    101

    Hi Antao

     

    Did you set debug="true" in the web.config?

     

    In the <compilation> section you should set the debug attribute to true. Should look like this

     

    <compilation defaultLanguage="C#" debug="true" batch="false" targetFramework="4.5">

     

    Remember to switch back to false when you build your solution to a live environment.

     

    Hope this helps.

     

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft