Results 1 to 13 of 13

Thread: deploy a. Net 2005 winforms application with a remote server

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    deploy a. Net 2005 winforms application with a remote server

    Hello,

    I have a windows application that uses a sql server remote database.

    Which is the best method to deploy an application that has to connect to a remote server on an another computer, that is part of the LAN Network.

    I have been told that during installation the connection will be setup.

    Thanks in advance,

    Steve
    Last edited by steve_rm; Sep 22nd, 2006 at 12:22 AM.
    steve

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: deploy an win application with a remote server

    Well, you did not give enough information to decide anything. Are you using ODBC or a DSN-Less connection? Are you asking about installers? What?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Re: deploy an win application with a remote server

    Hello,

    At the moment I am using the sqlclient connection. I have my connection string in the app.config.

    Well as I have never deployed, I will never know what is best.

    Give you could give a short example, i would be most grateful.

    Thanks in advance,

    Steve
    steve

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: deploy an win application with a remote server

    What does your connection string look like?

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Re: deploy an win application with a remote server

    Hello Randem,

    I this is my connection string
    Code:
    connectionString="Server=dev01;database=ServiceMaster;Integrated Security=True"
    I have this in the app.config file.

    Thanks,

    Steve
    steve

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: deploy an win application with a remote server

    app.config file. Is this .Net?

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Re: deploy an win application with a remote server

    Hello Ramden,

    I am using visual basic 2005, with sql server 2005.

    The application will be installed on a client machine, and the sql server will be on another computer connected to the LAN.

    So when they install in the application they should all be able to access to the sql server database.

    I think they want to be able to select the server on the install that they want to connect to.

    I hope you understand,

    Thanks for your help,

    Steve
    steve

  8. #8
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: deploy an win application with a remote server

    All this info would have been helpful in the first post and in your title for the thread so that the proper person answers the questions. I am not familiar with .Net but now that the information is out there someone will be able to answer your questions.

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Re: deploy an win application with a remote server

    Ok, thanks for the advice and help.

    Hopefully someone will get back to me,

    steve
    steve

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: deploy a. Net 2005 winforms application with a remote server

    Perhaps there may be something in the two articles/tutorials on .NET installations in the Application Forums FAQ - http://vbforums.com/showthread.php?t=315829 that may help.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Re: deploy a. Net 2005 winforms application with a remote server

    Hello,

    Thanks for you reply, but I have looked at the websites, but can't seem to find anything.

    If you have any idea how to do this, please let me know.

    Thanks,

    Steve
    steve

  12. #12
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: deploy a. Net 2005 winforms application with a remote server

    When you state "Remote server" are you meaning web/internet access connections? If so then your sql server needs to be configured differently for that type of connection.

    If its just a server on your network then just use the config file like your using. Are you running Express or Pro?

    Express has Click Once for generating a setup installation package. Pro has a Setup Project that you can add to your project and compile both the program's exe and the setup package at the same time.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  13. #13

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Re: deploy a. Net 2005 winforms application with a remote server

    Hello,

    Thanks for your reply.

    When I said remote server, I mean one that is connected to the LAN.

    The software I am using is Professional Visual Studio 2005 and SQL Server Developer 2005.

    The connection is in the app.config file something like this:
    cnn = "server=myServer; database=mydatabase; user=myuser; pwd=mypwd"

    However, this will work if I know what server it is going to be used, but at present the user wants to have this choice when they install. The connection will be no good, as it could be for the wrong server.

    Hope you understand my problem, I need to deploy this very soon.

    Thanks in advance for any help you can give me.

    Steve
    steve

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