MiniProfiler not showing up on asp.net MVC

前端 未结 3 1353
一向
一向 2020-12-14 07:32

I added this to my Global.asax.cs:

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

protecte         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 08:12

    In your web.config, add this:

    
        ...
        
            
            ...
        
        ...
    

    If you want some sweet MVC Action profiling (unrelated to your problem), add this line to Application_Start in Global.asax.cs:

    GlobalFilters.Filters.Add(new StackExchange.Profiling.MVCHelpers.ProfilingActionFilter());
    

提交回复
热议问题