The error as following:
Symptom:
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: 26-error locating server/instance specified)
Cause:
Application log on DB with a instance which is denied or unaccessable.
Solution:
To resolve the issue-I had to change the vsts options; from tools-> options-> data tools-> data connection, then set SQL serevr Instance name as blank or an instance name you want.
For example, this paragraph is from a config file, the server is "./", that means a local server, default instance.
If application need to connect to sqlexpress instance, it shocould be... Server =./sqlexpress. Accordingly, you shocould update the "SQL serevr Instance name" in vs also.
<Connectionstrings>
<Add name = "sinadb"
Connectionstring = "Server =./; database = shotgunaccept; Integrated Security = sspi ;"
Providername = "system. Data. sqlclient"/>
</Connectionstrings>