MiniProfiler ProfilingActionFilter & ProfilingViewEngine both not found
Asked Answered
C

1

10

After upgrading from MiniProfiler v2 to v3 the ProfilingActionFilter & ProfilingViewEngine appear to be missing?

I've googled and even checked the assembly for something similar, but there is nothing that stands out as it's replacement?

Am I missing something?

Below is my Using and my section of code try to implement this.

using StackExchange.Profiling;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;



GlobalFilters.Filters.Add(new ProfilingActionFilter());

ViewEngines.Engines.Add(new ProfilingViewEngine(razorEngine));
Crossbar answered 4/6, 2014 at 11:0 Comment(0)
B
16

Please make sure that in addition to the main MiniProfiler assembly, you have also installed the MiniProfiler.MVC4 nuget. This assembly (StackExchange.Profiling.Mvc) includes the ProfilingActionFilter and ProfilingViewEngine classes, both in the StackExchange.Profiling.Mvc namespace.

You can see these in action in the Sample.Mvc project.

Bipolar answered 5/6, 2014 at 6:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.