PDA

Click to See Complete Forum and Search --> : how to deploy vb.net windows in client computer


mails4vijayakumar
Sep 13th, 2010, 11:04 AM
i am developing a windows application with postgres as my database.

my connecion string in my app,config file is follow....




<connectionStrings>

<add name="MyConnection" connectionString="Driver=PostgreSQL ANSI;Server=localhost;Port=5432;Database=pacs;Uid=postgres;Pwd=postgres;" />

</connectionStrings>

<system.diagnostics>




i deployed my application in my server computer and is working fine.
now i want to deploy my application in my client computer also. And i need to access same database in my server through network.
i dont how to proceed. please help me...............

Hack
Sep 13th, 2010, 01:31 PM
Moved To Application Deployment

Jenner
Sep 13th, 2010, 01:57 PM
You're going to need to store the network name of your database server with the program; either hard coded, or in a data file. Then, at runtime you need to generate a ConnectionString with that value.

jmcilhinney
Sep 14th, 2010, 02:30 AM
You obviously already have the connection string in the config file. You simply edit that on the clients to specify the server name rather than 'localhost'. That's exactly the reason that you put the connection string in the config file in the first place.