views:

34

answers:

1

If a process loads both a .NET 1.1 COM object and a .NET 2.0 COM object, both using an in-process server, what happens? Does anything break with this configuration? Or would it be safer to make one of the objects an out-of-process server?

+5  A: 

It depends which gets loaded first, because (prior to .NET 4) you can only have one version of the runtime loaded into a process. Either the .NET 1.1 object loads first, and the .NET 2.0 object falls over; or the .NET 2.0 object loads first and the .NET 1.1 object hopefully works.

You should probably consider upgrading the .NET 1.1 object to run on 2.0. If you don't, then either your application will fail, or the .NET 1.1 object will get loaded into 2.0 regardless.

Tim Robinson
Yeah, I can upgrade _my_ component, but I have no idea what else is in use... I might just go with out-of-process for safety.
bdonlan