Error connecting to the database through Visual Studio

0

I'm trying to add a database to my application, the first one I got, but when trying to add another database I got the following error returned:

  

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred Can not create an automatic instance See the Windows Application event log for error details.

These are my 2 connectionsString, but I was only able to add the first one (ASP_NET_MVC_CS):

<connectionStrings>
<add name="ASP_NET_MVC_CS" connectionString="Data Source=ARTHUR\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASP_NET_MVC_DB.mdf; Persist Security Info = True; User ID=sa;Password=*******; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
<add name="IndetityDB" connectionString="Data Source=ARTHUR\SQLEXPRESS;AttachDbFilename=|DataDirectory|\IdentityDb.mdf;Persist Security Info = True; User ID=sa;Password=********; MultipleActiveResultSets=True;" providerName="System.Data.SqlClient" />
    </connectionStrings>

What is the reason for the error?

    
asked by anonymous 01.08.2017 / 05:05

0 answers