Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MiniProfiler ProfilingActionFilter & ProfilingViewEngine both not found

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));
like image 562
Stuart.Sklinar Avatar asked Jun 04 '14 11:06

Stuart.Sklinar


1 Answers

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.

like image 70
Yaakov Ellis Avatar answered Oct 20 '22 10:10

Yaakov Ellis