Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Frnds,

I have developed windows appliction in my system and deployed it my connection string.. but i installed another system 2 problems arised:

1. .Net framework 4 is needed to this system
2. connection string problem and
3. how i make Setup sqlserver into my application.. how i give connectionstring in my application



With Regards,
Vivek .R
Posted
Comments
Ashwani Gusain 22-Feb-14 0:39am    
Make sure in Target system compatible as .net 4.0 and check your setup file under debug folder app data(sql file) is there or not?

 
Share this answer
 
For solving issue related to .net frame work u should select .Net framework 4 in the 'Prerequisites' tab from the properties of you setup file project . Also make sure that u select 'Download prerequisites from the same location as my application' under the prerequisites tab.

For solving connection string related issue u should replace the datasource name in connection string with a dot symbol or (localhost) (currently datasource name denotes your system name) so your connection string becomes as follows
"Data Source=.\sqlexpress;Initial Catalog=Dbname;Integrated Security=False;User ID=sa;Password=password"
 
Share this answer
 
v3

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