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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.