Groups | Blog | Home
all groups > dotnet interop > july 2007 >

dotnet interop : invoking .net2.0 dll from .net1.1 exe


eblaster
7/15/2007 7:30:27 PM
Is it possible to invoke a .net 2.0 dll (built using VS2005) from a .net 1.1
exe built using vs2003?
Thanks

Phill W.
7/16/2007 3:09:16 PM
[quoted text, click to view]

Not within the same process, no.

A 1.1 process cannot load a 2.0 dll, but a 2.0 process can [/usually/]
load a 1.1 assembly.

HTH,
Micky Duncan
7/30/2007 12:00:00 AM
Assuming that no UI is involved you could probably write a middleman to do
the job.
e.g.

..NET 1 --> COM out-of-process host (exe) --> .NET 2

The COM host could be a c++ with managed extenstions so that it could use
..NET types - such as in the ones in your .NET project.

Unfortunately this tactic gets very complex where user interfaces are
involved so I wouldn't recommend it.

Micky

[quoted text, click to view]
AddThis Social Bookmark Button