1

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 herein 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>

2 Answers 2

1

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>
Sign up to request clarification or add additional context in comments.

1 Comment

thanks but it still does not work,i move on that topic for now.
0

set Data Source= your computer name instead of .

2 Comments

i am not sure that is the problem but i'll try.
Unfortunately, if setting it to localhost or 127.0.0.1 didn't work, this won't either. They're equivalent. Can you connect to the server itself, just not the database?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.