Currently working on a small web app in MVC5 with EF6 and I receive this error:
An exception of type 'System.Configuration.Provider.ProviderException' occurred in System.Web.dll but was not handled in user code
Additional information: The Role Manager feature has not been enabled.
The code that triggers this error is as follows:
@if (Roles.IsUserInRole("Admin") || Roles.IsUserInRole("Standard"))
As far as I know, roleManager is not a thing in EF6 and MVC5, but back from Membership. I have seen many questions and solutions that refer back to EF5 or claim to be for EF6, while I thought Role Manager to be EF5.
How should I solve this error correctly, according to best practices in EF6/MVC5?