Porting a DLL from .Net 1.1 to .Net 2.0

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?

LVL 20
Who is Participating?
pgloorConnect With a Mentor Commented:
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).

NicoConnect With a Mentor Commented:
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...
existenz2Connect With a Mentor Commented:
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.
TheAvengerAuthor Commented:
Can I use it on a machine where only .Net 2.0 is installed?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.