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. .NET (Core and Framework)
  4. Using 2.0 in 1.1

Using 2.0 in 1.1

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpvisual-studioquestion
10 Posts 5 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.
  • T Offline
    T Offline
    thebread
    wrote on last edited by
    #1

    hey folks, is it possible to use a 2.0 dll in a 1.1 project? i just created a vs 2003 project and tryed to add a reference to a .Net2.0 dll...unsuccessful is there a way to realize my intention anyway? thanks, bernd

    D D 2 Replies Last reply
    0
    • T thebread

      hey folks, is it possible to use a 2.0 dll in a 1.1 project? i just created a vs 2003 project and tryed to add a reference to a .Net2.0 dll...unsuccessful is there a way to realize my intention anyway? thanks, bernd

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      no.

      T 1 Reply Last reply
      0
      • D Dan Neely

        no.

        T Offline
        T Offline
        thebread
        wrote on last edited by
        #3

        such a crap! and also no way to create something like a wrapper in 2.0 for 1.1? or something like a .tlb? thx

        D 1 Reply Last reply
        0
        • T thebread

          such a crap! and also no way to create something like a wrapper in 2.0 for 1.1? or something like a .tlb? thx

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

          Nope.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          R 1 Reply Last reply
          0
          • T thebread

            hey folks, is it possible to use a 2.0 dll in a 1.1 project? i just created a vs 2003 project and tryed to add a reference to a .Net2.0 dll...unsuccessful is there a way to realize my intention anyway? thanks, bernd

            D Offline
            D Offline
            Dustin Metzgar
            wrote on last edited by
            #5

            Can you put your 2.0 dll behind a web service?


            Logifusion[^] If not entertaining, write your Congressman.

            T 1 Reply Last reply
            0
            • D Dustin Metzgar

              Can you put your 2.0 dll behind a web service?


              Logifusion[^] If not entertaining, write your Congressman.

              T Offline
              T Offline
              thebread
              wrote on last edited by
              #6

              hmm...a web service is not a realy alternative. what i'm trying to do is using ironPython in .Net 1.1 it seems, i have to port the host application. thanks

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                Nope.

                Dave Kreskowiak Microsoft MVP - Visual Basic

                R Offline
                R Offline
                Robert Rohde
                wrote on last edited by
                #7

                Hi, haven't tried it but are you sure it isn't possible to enable COM registration in the 2.0 dll and then use it from 1.1 via COM interop? Robert

                D 1 Reply Last reply
                0
                • R Robert Rohde

                  Hi, haven't tried it but are you sure it isn't possible to enable COM registration in the 2.0 dll and then use it from 1.1 via COM interop? Robert

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

                  I haven't done it myself either, but I think this is correct... His app will start and load the 1.1 framework, if available(!), or under the latest version installed. When his component is finally created, no matter what interface is used to call it, it'll try to load under the version of the framework that is already running. If the component isn't compatible with it, it'll fail. You can't load two different versions of the framework into the same process. His component will have to run as a remote component in its own process since you can run two versions side-by-side, but in different processes. This, of course, will also come with a performance hit because of the cross-process marshaling.

                  Dave Kreskowiak Microsoft MVP - Visual Basic

                  R 1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    I haven't done it myself either, but I think this is correct... His app will start and load the 1.1 framework, if available(!), or under the latest version installed. When his component is finally created, no matter what interface is used to call it, it'll try to load under the version of the framework that is already running. If the component isn't compatible with it, it'll fail. You can't load two different versions of the framework into the same process. His component will have to run as a remote component in its own process since you can run two versions side-by-side, but in different processes. This, of course, will also come with a performance hit because of the cross-process marshaling.

                    Dave Kreskowiak Microsoft MVP - Visual Basic

                    R Offline
                    R Offline
                    Robert Rohde
                    wrote on last edited by
                    #9

                    You are right. I didn't think of the restriction of only having one framework version within the same process.

                    T 1 Reply Last reply
                    0
                    • R Robert Rohde

                      You are right. I didn't think of the restriction of only having one framework version within the same process.

                      T Offline
                      T Offline
                      thebread
                      wrote on last edited by
                      #10

                      I compiled my project against .NET1.1 and run it currently on .NET2.0, so i thought i can load some 2.0-dll's dynamicly...still in testing state... -- modified at 18:05 Saturday 5th August, 2006 ok, that does the job. i'm sure there are sometimes some compatibility isues in running my 1.1-App under 2.0 but this price i have to pay. thanks guys

                      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