legacy app .net 1.1 using .net 2.0 component. is it possibile?

  • Thread starter Thread starter Joey
  • Start date Start date
J

Joey

Hi,

we have a asp.net project which is was built with .net 1.1 and would like to
keep it that way. however we would like to see if we can use new class
libraries built with .net v2.0 by referencing the v2.0 libraries from the
v1.1 project.

is this possible? from what i've seen so far it seems not possible.. just
wanted to see if there is a way to do this (apart from exposing the .net
v2.0 library as COM).
 
Not without updating the main exe to load 2.0, not 1.1; in fact, even
COM would fail if "in process" (dll), since it would still end up
calling back into the same process, and that is the issue. You'd have to
*at the minimum* go out-of-process (serviced components or SOA) - and it
probably isn't worth it.

..NET 2 (and the CLR2) introduces IL instructions that are not understood
in .NET 1.1, so .NET 2.0 code *cannot* run in 1.1.

Personally I'd try to move to 2.0 (or later), but I appreciate that this
is not always possible for various reasons.

Marc
 
thanks.

will try porting the component to v1.1 as upgrading the main app is
impossible unfortunately :(
 
Back
Top