hello there
i have developed a windows application and include a setup project in this application and when i install this application in the other computer it does not access the database how to correct this problem i am attaching a sample project with database please help me
thank you
Loading

Posted Jul 5, 2012, 8:48 PM
Please add app.config file and read the connection string information from app.config file.
After installing the application in your system, the database informations are same or it is different ?
I have reflected your code, the connectionstring says "SqlConnection cn = new SqlConnection("Data Source=.; Initial Catalog=login_control; User ID=sa; Password=123456");".
So, after installing the application in another system, when you use "." it will connect the local database server on that system.
Please change your connectionstring something like
praveen mauryaPosted Jul 6, 2012, 7:16 AM