question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The given filter instance must implement one or more of the following filter interfaces: IAuthorizationFilter, IActionFilter, IResultFilter, IExceptionFilter.

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
maartenbacommented, Nov 7, 2016

Will see if I can find some time to debug

0reactions
mikemike396commented, Nov 7, 2016

This works great! Thank You

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found