The given filter instance must implement one or more of the following filter interfaces: IAuthorizationFilter, IActionFilter, IResultFilter, IExceptionFilter.
See original GitHub issueI have the GoogleAnalyticsTracker.WebAPI installed. Getting this exception ‘System.InvalidOperationException’ Any help?
public class FilterConfig
{
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
{
filters.Add(new HandleErrorAttribute());
filters.Add(new ActionTrackingAttribute(
"xx-xxxxxxx-x", "url",
action => action.ControllerContext.ControllerDescriptor.ControllerName == "Api")
);
}
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Exception : The given filter must implement one or more of ...
The given filter instance must implement one or more of the following filter interfaces: System.Web.Mvc.IAuthorizationFilter, System.Web.Mvc.
Read more >The given filter instance must implement one or more of ...
The given filter instance must implement one or more of the following filter interfaces: System.Web.Mvc.IAuthorizationFilter, System.Web.Mvc.
Read more >the given filter instance must implement one or more of ...
The given filter instance must implement one or more of the following filter interfaces: IAuthorizationFilter, IActionFilter, IResultFilter, ...
Read more >Filters in ASP.NET Core
Learn how filters work and how to use them in ASP.NET Core. ... How filters work; Implementation; Filter scopes and order of execution ......
Read more >Filters in ASP.NET MVC
NET MVC Filters are used to inject extra logic at the different levels ... Action filters implement the IActionFilter interface that has two...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will see if I can find some time to debug
This works great! Thank You