The Role Manager feature has not been enabled using Partial views

1.1k Views Asked by At

I am currently trying to do the dynamic _Layout by reading the role that user currently logged is in adn i am having this error constantly. Additional information: The Role Manager feature has not been enabled. I know that it is because the roleManager was not enabled and i already tried the solution given in the similar topics but they seemed to not work for me (or i just messed up with them). I would be grateful if someone could help me.

Here is my code that throws an exception:

http://pastebin.com/3FnrSxCy And i use it like this:

@Html.Partial("_Menu")

And here is my web.config file: http://pastebin.com/zSH6hMnZ

1

There are 1 best solutions below

2
On

I think you have not putted your role manager configuration in web.config. - Try something like following link.

The Role Manager feature has not been enabled. MVC 4