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> 
  1. visual studio-->tools-->options-->database tools-->data connections--> changed "sql server instance name" "sqlexpress" blank.

    1. 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

    2. sql server browser running in system.

    3. server name correct. no typo mismatch.

    4. client machine able ping machine.

    5. 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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -