provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

Mohsen Mohammadi 0 Reputation points
2023-05-24T16:18:10.3566667+00:00

I get the error message when I try to connect to the SQL Server 2005 Database from VisualStudio 2022 and .Net 6 Project (winform).

my project is winform with .net 6 .when i want to connect to remote server that is sql 2005 ,i get error : 26 - Error Locating Server/Instance Specified.

my connectionstring:

"Data Source=192.168.1.88\sqlexpress;User Id=sa;Password=123456gt; Initial Catalog=master"

i can connect to this remote server by ssms

i can connect to this remote server by visualStudio2012 and project .net framework 3.5

i can connect to this remote server with instance of sql 2014 with project .net 6

i can connect to local server with instance of sql 2005 with project .net 6

but i can't connect to remote server 2005 with project .net 6 win form.

Thanks

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,404 questions
{count} votes