I get an error when I try to build my project.
'SSLAccessFiltercannot' be used as an attribute because it does not inherit from 'System.Attribute'
Anyone here familiar with this error or see the problem here?
Thanks in advance 🙂
EDIT:
Added some code as example
<AcceptVerbs(HttpVerbs.Get), SSLAccessFilter(AccessType.NotAllowed)> Function GroupDiscussionView(ByVal elementId As String, ByVal topicId As Integer) As ActionResult
Somewhere in your code you have an attribute:
<SSLAccessFilter()>.It seems, by looking at the error, that SSLAccessFilter does not inherit from System.Attribute and you are using it as an attribute. This can’t be done.
Not much else can be said without some more information. Like code.
If SSLAccessFilter is your own class you need to inherit it from System.Attribute: