Overriding AuthorizeCore in custom Authorize attribute results in “no suitable method found to override” error

前端 未结 7 1029
悲哀的现实
悲哀的现实 2020-12-13 19:21

I\'m trying to build custom AuthorizeAttribute, so in my Core project (a class library) I have this code:

using System;
using System.Web;
using System.Web.Mv         


        
相关标签:
7条回答
  • 2020-12-13 19:49

    Also, since I've seen this happen before, be careful with letting Visual Studio auto add usings for you. If you're not paying attention you may end up adding System.Web.Http instead of System.Web.Mvc.

    0 讨论(0)
提交回复
热议问题