Friday, 15 August 2014

c# - 'AllowAnonymous' could not be found -



c# - 'AllowAnonymous' could not be found -

everything worked fine until installed (package manager console) postal package, uninstalled , installed older version.

now error not. error:

the type or namespace name 'allowanonymous' not found (are missing using directive or assembly reference?)

who knows how prepare this?

probably missing reference system.web.http assembly in project?

so need to:

add reference system.web.http; add using system.web.http; controller;

to add together reference need next steps:

in solution explorer, right-click project node , click add reference. in add reference dialog box, select tab assemblies, , come in system.web.http search on right side. select component system.web.http, , click ok.

link:

how to: add together or remove references using add together reference dialog box

c# asp.net-mvc asp.net-mvc-4 asp.net-membership asp.net-identity

No comments:

Post a Comment