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. How to use two different versions of same dll in vb.net web application?

How to use two different versions of same dll in vb.net web application?

Scheduled Pinned Locked Moved Visual Basic
helpcsharptutorialquestion
7 Posts 4 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.
  • A Offline
    A Offline
    Affan Toor
    wrote on last edited by
    #1

    Hi, I want to load and use two different versions of same dll in my project. only solution i could think of is to use same dll with different namespace, but I cannot change the dll since its third party. so i am stuck here...is it even possible? if yes then how? Not sure if this is the right forum, since i want to achieve this in vb.net application so posted here. any kind of help is appreciated!

    Regards, Affan Toor

    D S Z 3 Replies Last reply
    0
    • A Affan Toor

      Hi, I want to load and use two different versions of same dll in my project. only solution i could think of is to use same dll with different namespace, but I cannot change the dll since its third party. so i am stuck here...is it even possible? if yes then how? Not sure if this is the right forum, since i want to achieve this in vb.net application so posted here. any kind of help is appreciated!

      Regards, Affan Toor

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

      Are these COM-based, normal library or .NET .DLL's??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      A 1 Reply Last reply
      0
      • A Affan Toor

        Hi, I want to load and use two different versions of same dll in my project. only solution i could think of is to use same dll with different namespace, but I cannot change the dll since its third party. so i am stuck here...is it even possible? if yes then how? Not sure if this is the right forum, since i want to achieve this in vb.net application so posted here. any kind of help is appreciated!

        Regards, Affan Toor

        S Offline
        S Offline
        Sentenryu
        wrote on last edited by
        #3

        why you want this? i've a generic solution, but will be very painstaking... so, depending on why you want that, we can delivery a simple solution...

        A 1 Reply Last reply
        0
        • D Dave Kreskowiak

          Are these COM-based, normal library or .NET .DLL's??

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          A Offline
          A Offline
          Affan Toor
          wrote on last edited by
          #4

          Thanks for reply. these are .NET DLLs. basically our organization are shifting from an older version of third party API to its latest version. and we want to make this transition smooth, we want to use both for a while and gradually replace the functionality from older version to new version.

          Regards, Affan Ahmad Toor

          1 Reply Last reply
          0
          • S Sentenryu

            why you want this? i've a generic solution, but will be very painstaking... so, depending on why you want that, we can delivery a simple solution...

            A Offline
            A Offline
            Affan Toor
            wrote on last edited by
            #5

            thanks for reply. our organization are shifting from an older version of third party API to its latest version. and we want to make this transition smooth, we want to use both for a while and gradually replace the functionality from older version to new version. if you have any alternative solution then please share.

            Regards, Affan Ahmad Toor

            S 1 Reply Last reply
            0
            • A Affan Toor

              thanks for reply. our organization are shifting from an older version of third party API to its latest version. and we want to make this transition smooth, we want to use both for a while and gradually replace the functionality from older version to new version. if you have any alternative solution then please share.

              Regards, Affan Ahmad Toor

              S Offline
              S Offline
              Sentenryu
              wrote on last edited by
              #6

              i don't know if this will work on VB, but i've found this workaround: http://blogs.msdn.com/b/abhinaba/archive/2005/11/30/498278.aspx[^] also, this post from stackOverflow can be useful: http://stackoverflow.com/questions/5916855/using-multiple-versions-of-the-same-dll[^] also, i've found that in SharpDevelop you could simple select the reference in the solution explorer, click properties and set a alias, this works for VB and C#, i can't verify that this is true for visual studio (i don't have it here), but its a good start point if nothing works, the solution is to create 2 more class library projects and warp each version in a diferent namespace... too much work :(( EDIT: i haven't managed to reference the alias defined in SharpDevelop into the code, so, i think you will be forced to warp the dlls...

              I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

              1 Reply Last reply
              0
              • A Affan Toor

                Hi, I want to load and use two different versions of same dll in my project. only solution i could think of is to use same dll with different namespace, but I cannot change the dll since its third party. so i am stuck here...is it even possible? if yes then how? Not sure if this is the right forum, since i want to achieve this in vb.net application so posted here. any kind of help is appreciated!

                Regards, Affan Toor

                Z Offline
                Z Offline
                ZurdoDev
                wrote on last edited by
                #7

                That is what the Reflection namespace is for in .Net. You'll have to load the dll's dynamically. I don't think it is worth it though.

                There are only 10 types of people in the world, those who understand binary and those who don't.

                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