0

I added MiniProfiler to my project using

Install-Package MiniProfiler

To try and work out why the app runs so slowly, and it seems to be working fine when debugging in VS.

However, after publishing the application and running it, the profile information is no longer displayed.

I followed these instructions to set up the profiler.

Is this a feature of MiniProfiler, and if so is there some of way of allowing this information to be displayed?

I tried publishing in debug mode but no luck.

Appreciate any help at all

Bassie
  • 9,529
  • 8
  • 68
  • 159

1 Answers1

1

After removing the

if (Request.IsLocal)

from

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

It now appears to be working fine.

Bassie
  • 9,529
  • 8
  • 68
  • 159
  • 1
    I've finally set up docs we can rapidly improve upon including getting started bits like this at http://miniprofiler.com/dotnet/ - I hope you find them useful! – Nick Craver Jun 11 '17 at 21:02
  • @NickCraver Thanks nick, I will have a look. Great package btw! – Bassie Jun 11 '17 at 21:06