nico maes

nico maes

  • NA
  • 4
  • 0

MVC 5 - RoleManager

Mar 18 2014 4:43 PM
Hello everybody,
 
I'm building my first internet application via MVC 5 and I'm stumbling on a problem concerning the use of the ASPNET Roles.
 
I want to use the standard built in roles, but each time I get the message that the role isn't enabled.
 
Now I've added the following code into the web.config file:
<roleManager enabled="true" /> 
 
After applying this, I get the following error when I want to migrate everything into the DataBase.
Unable to connect to SQL Server database.
 
Can anyone please help me in how to resolve this issue.
 
It would be very much appreciated.
 
Thx! 
 
 

Answers (2)