Porting a DLL from .Net 1.1 to .Net 2.0

Posted on 2006-05-02
Last Modified: 2010-04-16
Hello guys

We are currently moving from .Net 1.1 to .Net 2.0. We are using an external DLL provided by a hardware supplier. This DLL is written on .Net 1.1. I now want to port it to .Net 2.0 but I don't have source codes so I cannot recompile it (I tried decompiling but the generated code won't compile). Is there a tool or something that can directly port the DLL to 2.0 so that it is all .Net 2.0 based?

Question by:TheAvenger
    LVL 3

    Assisted Solution

    Why would you want to port it?

    I don't think using a .NET 1.1 DLL should give you any major problems; heck, the .NET framework 2.0 itself uses several 1.1 DLL's...
    LVL 14

    Assisted Solution

    You can use .NET 1.1 dlls in 2.0 without very much problems, so I wouldnt bother converting it if I was you, especially since it's a third party component.
    LVL 20

    Author Comment

    Can I use it on a machine where only .Net 2.0 is installed?
    LVL 5

    Accepted Solution

    It depends on your DLL. You need to test your DLL.

    When the application is started up the CLR looks at the .NET Framework version recorded in the application and tries to run the application on the version of the .NET Framework that the application was compiled with. If that version is not installed on the machine, the CLR will attempt to start the application on the latest .NET Framework and CLR.

    For example, an application compiled for .NET Framework 1.1 running on a machine with only the .NET Framework 2.0 will be rolled forward to run on the .NET Framework 2.0.

    However, if your DLL contains code specific to .NET 1.1 it will fail on .NET 2.0. For example, DataAdapterException in System.Data of .NET 1.1 has been renamed to DbProviderException System.Data of .NET 2.0.

    For more detailed information read this:

    And this MSDN article (published March 2006).


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    In one of my recent projects, I was working with IP cameras, I need to take some pictures from the camera and do some processing on it. The first step, was to retrieve the image from camera into Image object. So that it can be displayed or …
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now