Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Set app reference with config

Set app reference with config

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studiohelptutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BobbyStrain
    wrote on last edited by
    #1

    I have a windows form app that references a library. I want to deploy the app to a different machine and I don't know the name/location for the reference on that machine. Can I edit a config file to include the reference for the new machine? And can you point me to an example, please? I can use either VB6 or VB.net with VS 2010. Thank you for your help. Bobby

    D 1 Reply Last reply
    0
    • B BobbyStrain

      I have a windows form app that references a library. I want to deploy the app to a different machine and I don't know the name/location for the reference on that machine. Can I edit a config file to include the reference for the new machine? And can you point me to an example, please? I can use either VB6 or VB.net with VS 2010. Thank you for your help. Bobby

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      A "reference" is only valid at compile-time and only works with COM-based and .NET libraries. If you're using a COM-based library, the registration information in the registry is all that is needed. If using a .NET library, all you need is the library in the same folder as the .EXE that's using it. You don't provide this information at runtime.

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      B 1 Reply Last reply
      0
      • D Dave Kreskowiak

        A "reference" is only valid at compile-time and only works with COM-based and .NET libraries. If you're using a COM-based library, the registration information in the registry is all that is needed. If using a .NET library, all you need is the library in the same folder as the .EXE that's using it. You don't provide this information at runtime.

        A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        B Offline
        B Offline
        BobbyStrain
        wrote on last edited by
        #3

        Thanks, Dave. And looking at the build action, seems like the library has to be on the development machine, too. And, do I only need the .tlb file for the target application? Bobby

        I 1 Reply Last reply
        0
        • B BobbyStrain

          Thanks, Dave. And looking at the build action, seems like the library has to be on the development machine, too. And, do I only need the .tlb file for the target application? Bobby

          I Offline
          I Offline
          i00
          wrote on last edited by
          #4

          Tlb's are for COM objects ... you may need to register the reference on the other computer... look into regsvr32 Kris

          B 1 Reply Last reply
          0
          • I i00

            Tlb's are for COM objects ... you may need to register the reference on the other computer... look into regsvr32 Kris

            B Offline
            B Offline
            BobbyStrain
            wrote on last edited by
            #5

            Thanks, Kris. The library will already be registered on the client. I'll see how it goes. Bobby

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups