Bassie
Bassie

Reputation: 10390

MiniProfiler not working after publish

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

Upvotes: 0

Views: 344

Answers (1)

Bassie
Bassie

Reputation: 10390

After removing the

if (Request.IsLocal)

from

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

It now appears to be working fine.

Upvotes: 1

Related Questions