MiniProfiler in WebForms (Profiler won't render)


#1

I’m attempting to use the MiniProfiler NuGet package in our Web Forms application. I was able to add it and run various Steps in the Page_Load section and for the master page’s header I have:

<head id="Head1" runat="server">
    ....
    <asp:ContentPlaceHolder ID="testing" runat="server">
        <%= StackExchange.Profiling.MiniProfiler.RenderIncludes() %>
    </asp:ContentPlaceHolder>
</head>

If I view source, I see var initMp = function… /mini-profiler-resources/… and other things mentioning profiler, but I don’t see the div anywhere in the form.

Am I missing something? I realize this is primarily for MVC, but I keep reading that it is okay for WebForms as well.


#2

aha … assuming this is resolved then …


#3

I’m an idiot. Forgot to include MiniProfiler.Stop();


#4

Yeah, unfortunately it was that easy. Great work on this project, I’ve already been able to make our internal system a bit faster (and learning ways to optimize along the way). Thanks.


#5

Awesome… if its helpful be sure to post a praise topic here :slight_smile: