There is a problem with your selected data store
When you select Project\ASP.NET Configuration and click on the security tab you may see this error.
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Could not load type 'MvcApplication2.MvcApplication'.
This can occur when you create a MVC, MVC2, OR MVC3 project.
Here’s how to make it work.
1. Create a connection string you know is valid eg
<Data Source=nicholsonpark\sqlexpress;Initial Catalog=MoviesDB;Integrated Security=True>
Test this works in code, don’t just copy what I have written above.
2. Run the tool \WINDOWS\Microsoft.NET\Framework\2.0.xxxx\ aspnet_regsql.exe. Follow the prompts and enter the database above. The exe will add tables and stored procedures to the database required for security to work.
3. Change web.config to:
<connectionStrings>
<add name="ApplicationServices"
connectionString="Data Source=nicholsonpark\sqlexpress;Initial Catalog=MoviesDB;Integrated Security=True"
providerName="System.Data.SqlClient" />
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer"
connectionString="Data Source=nicholsonpark\sqlexpress;Initial Catalog=MoviesDB;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
Note that there are two connection strings. One the application uses for normal programming and LocalSqlServer that is used for security.
Note that you need to remove the name LocalSqlServer before adding it as it is already registered.
4. Change this setting to true:
<roleManager enabled="true">
5. Rebuild the app. You must recompile it.
6. Try clicking on Project\ASP.NET Configuration and click on the security tab. You should see: