Reputation: 11
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 enter code here
in diagnosing the problem: Unable to connect to SQL Server database.
here my connection string in web.config
<connectionStrings>
<add name="MusicStoreEntities" connectionString="Data Source=.;Initial Catalog=MusicStore;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
Upvotes: 1
Views: 70
Reputation: 381
user localhost like 127.0.0.1 it's should be work
<connectionStrings>
<add name="MusicStoreEntities" connectionString="Data Source=127.0.0.1;Initial Catalog=MusicStore;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
Upvotes: 1