The given filter instance must implement one or more of the following filter interfaces
2012-09-25 13:49
405 查看
创建了一个 ActionFilter , 但在FilterConfig.cs 的 RegisterGlobalFilters 的方法中添加时, 报错:
应使用 System.Web.Mvc
不该用 System.Web.Http.Filters
The given filter instance must implement one or more of the following filter interfaces: IAuthorizationFilter, IActionFilter, IResultFilter, IExceptionFilter.
原因:命名空间错了应使用 System.Web.Mvc
不该用 System.Web.Http.Filters
相关文章推荐
- [INS-41107]eth0 selected for one or more of the public or private interfaces is not on a shared subn
- this product is covered by one or more of the following
- Fix: 'Unable to load one or more of the requested types' Errors
- Flash Builder导出发行版本出错:创建AIR出错:error306,Descriptor must support one of the following
- WebPart部署时,“Unable to load one or more of the requested types.”错误的解决
- Class is not a root resource. It, or one of its interfaces must be annotated with @Path:
- One or more breakpoints cannot be set and have been disabled!Execution will stop at the beginning of the program
- eclipse报错:Compilation unit name must end with .java, or one of the registered Java-like exten
- 让人哭笑不得的“Unable to load one or more of the types in the assembly”问题的解决!
- We are unable to complete the review of your app since one or more of your In App Purchases have not
- xcode4 上传app 报错At least one of the following architecture(s) must be present :armv6
- Save Failed Compilation unit name must end with .java, or one of the registered java-like extension
- 让人哭笑不得的“Unable to load one or more of the types in the assembly”问题的解决!
- UBUNTU 9.10 因断电升级未成功后重启出现“one or more of the mounts listes in /etc/fstab cannot yet be mounted?”?
- <iOS> The operation could not be performed because of one or more tree conflicts.
- Compilation unit name must end with .java, or one of the registered Java-like extensions
- xcode4.3发布报错 At least one of the following architecture(s) must be present: armv6 (-19033) 错误解决方法
- Compilation unit name must end with .java, or one of the registered Java-like extensions (a error分析)
- The method xxx() of type xx must override or implement a supertype method
- xcode 4.2 itunes上传时 At least one of the following architecture(s) must be present: armv6 (-19033)