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));
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With