Results 1 to 4 of 4

Thread: how to deploy vb.net windows in client computer

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2008
    Posts
    103

    how to deploy vb.net windows in client computer

    i am developing a windows application with postgres as my database.

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


    Code:
    <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...............

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: how to deploy vb.net windows in client computer

    Moved To Application Deployment

  3. #3
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: how to deploy vb.net windows in client computer

    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.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: how to deploy vb.net windows in client computer

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width