2
Answers

MVC 5 - RoleManager

nico maes

nico maes

10y
4.5k
1
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)