error: 26 - error locating server/instance specified -
this arun chennai. have developed first application in wpf (c#) vs 2008 & sql server 2008. works fine in system. after deployment, wont works in other systems. shows following error message.
system.data.sqlclient.sqlexception - network related or instance specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections.(provider: sql network interfaces, error: 26 - error locating server/instance specified).
i have gone through google , done following steps no use.
server name : ecare432\sqlexpress
instance name : sqlexpress
app.config have:
<connectionstrings> <add name="timetracker.properties.settings.myecareconnectionstring" connectionstring="data source=ecare432\sqlexpress;initial catalog=myecare;persist security info=true;user id=sa;password=ecare123@" providername="system.data.sqlclient"/> </connectionstrings> visual studio-->tools-->options-->database tools-->data connections--> changed "sql server instance name" "sqlexpress" blank.
configuration tools->sql server configuration manager->sql native client configration aliases-> alias name -> ecare432\sqlexpress,1433 port number -> 1433 protocol -> tcp/ip server name -> ecare432\sqlexpress
sql server browser running in system.
server name correct. no typo mismatch.
client machine able ping machine.
tcp 1433 , udp 1434 exception added firewall. turned off firewall in both system , client system.
please guide me how fix issue.
i have removed instance name in connection string. have changed "data source=ecare432\sqlexpress;" "data source=ecare432" in app.config connection string. works now.
Comments
Post a Comment