How, specifically, does 2.0, or 3.5 framework run 1.1 referenced assemblies?

Last post 07-02-2009 12:44 PM by vpmragu. 3 replies.

Sort Posts:

  • How, specifically, does 2.0, or 3.5 framework run 1.1 referenced assemblies?

    09-30-2008, 11:00 AM
    • Member
      1 point Member
    • chrisanderson
    • Member since 10-11-2007, 1:44 AM
    • Posts 4

     I've been tasked with providing an estimate and laying out the process by which we will be migrating our entire business suite of ASP .Net websites and webservices over to the 3.5 framework.  Everything currently exists in vb .net 1.1.  I've dug through all of the breaking changes lists, gone through the conversion wizard a few times and the one thing I keep wondering, and getting asked by my fellow developers here at work is how does the 2.0, or 3.5 runtime load 1.1 dll's?  Does it just treat the assembly as a 2.0 assembly and if it runs into any methods that are not valid in the 2.0 it just belches up an exception?  My guess would be that it just treats the dll as a 2.0 dll and makes calls to it just like it would any other, but I want to be sure.

    Any technical information would be greatly appreciated!

    Chris Anderson
    .Net Developer

    I have found that he who talks the most typically has the least to say.
  • Re: How, specifically, does 2.0, or 3.5 framework run 1.1 referenced assemblies?

    09-30-2008, 11:51 AM
    Answer
    • Star
      12,114 point Star
    • shados
    • Member since 07-07-2006, 11:24 PM
    • Posts 2,201

    The 2.0 runtime will load the 1.1 DLL and handle it exactly like if it was a 2.0 DLL (2.0 and 3.5 are the same, as you may know). That means if a method isn't found, it will indeed toss an exception, in the same way if you manually edited a class in bytecode (using an hex editor or something) to add an invocation to a method that doesn't exist. The object will act in every ways like if it was a 2.0 DLL, which can mess up in certain rare scenarios (for example, when handling some more obscure culture codes, as they were changed between .NET 2.0 and 1.1)

    Aside that, it will work just fine, though do run the code of the DLL through the wizard if you can instead of running it as is...may catch some stuff :)

  • Re: How, specifically, does 2.0, or 3.5 framework run 1.1 referenced assemblies?

    09-30-2008, 12:26 PM
    • Member
      1 point Member
    • chrisanderson
    • Member since 10-11-2007, 1:44 AM
    • Posts 4

     Excellent - Thanks!

     Have you run across any specific MSDN or other Microsoft information regarding this?  I certainly trust what you're saying, as it is inline with what I expected, but I'd love to have something official from MS to say "Here you go, everything will be fine"

     

    Will the wizard catch runtime errors or will it only identify design time problems?

    Chris Anderson
    .Net Developer

    I have found that he who talks the most typically has the least to say.
  • Re: How, specifically, does 2.0, or 3.5 framework run 1.1 referenced assemblies?

    07-02-2009, 12:44 PM
    • Member
      81 point Member
    • vpmragu
    • Member since 01-09-2008, 1:43 AM
    • Bangalore
    • Posts 28

    hi,

    i try to convert my webapplication project from .net 1.1 to .net 3.5.

    All are ok.

    but some XSD file in my project.

    when i try to build my application, it throws warning like,

    "Errors occurred while compiling the Xml schemas in the project.  Because of this, Xml intellisense is not available"

    how to resolve my problem?

    Thanks in Advance.


    RaguNathan Maniraj,
    Software Engineer,
    Bangalore.
Page 1 of 1 (4 items)