0

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

Łukasz Trzewik
  • 1,165
  • 2
  • 11
  • 26

1 Answers1

0

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

Community
  • 1
  • 1
Jalpesh Vadgama
  • 13,653
  • 19
  • 72
  • 94