c# - SQL SERVER Named Pipes Provider, error: 40 only on EXE file -


so on server have sql server 2008 r2 have got 3 sites

all of them works , can connect db using same connection string :

 <add name="myconnectionstring" connectionstring=                                 "data source=(local);                                 initial catalog=my_db;                                 persist security info=true;                                 user id=my_user;                                 password=mypass"                                 providername="system.data.sqlclient"/> 

problem is:

i have windows form applications use same connection string

as sites iam getting

a 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: named pipes provider, error: 40 - not open connection sql server)

any ideas ?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -