Click here to Skip to main content
15,887,411 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i face this error when i create connection with local db of SQL server 2014,
i create c# winform application when i run my application on client computer  it show me this error message .

please any one tell me how can i solve it i want to run my application on client computer without installing the SQL server 2014 on client machine.
i install local db for sql server 2014 in Clint machine but still it show me this error message.

i'm to much tired to solve this error please help me

What I have tried:

i have no idea how can i remove it.
its my config file

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <connectionStrings>
     <add name="dbx"
            connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename='|DataDirectory|\db\RetilShop_POS.mdf';Integrated Security=True"
            providerName="System.Data.SqlClient"/>
   </connectionStrings>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
    </startup>
</configuration>   
Posted
Updated 1-Feb-19 4:16am
Comments
[no name] 1-Feb-19 10:49am    
Your connection string looks like your try to connect to the local machine. Therefore specify the correct server should solve the problem. I guess...
Fahid Zahoor 1-Feb-19 11:45am    
but there is no server install in client computer i want to run application with local db
Member 14726108 23-Apr-20 19:20pm    
Brother I am facing same problem. I hope you found soltuion of it. Can you guide me what did you do?

1 solution

You need to do what the message tells you. and install the relevant software libraries.
 
Share this answer
 
Comments
Fahid Zahoor 1-Feb-19 11:49am    
please you tell me relevant software libraries i don't know which fills is necessary
Richard MacCutchan 1-Feb-19 11:58am    
Are you being serious? This is your project so you must know what components/frameworks/libraries it is using.
Fahid Zahoor 2-Feb-19 1:34am    
I'm Beginner thats why i face many problems. so i need your help
Richard MacCutchan 2-Feb-19 3:17am    
Then I suggest you get a copy of the SQL documentation and start reading it. And you need to decide whether you plan to use SQLExpress (local database), or SQL server (shared network version). You cannot learn these things by posting questions in a Quick Answers forum.
Fahid Zahoor 2-Feb-19 6:18am    
Yes i decide I use SQLExpress(Local database)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900