Loading a .NET 4.8 Framework assembly into a .NET 6.0 Project

569 views Asked by At

I'm building a .NET 6.0 application that needs to use CORBA and IIOP to communicate with a remote server.

To achieve this, i'm using IIOP.NET, which depends on the deprecated Remoting API, and because of that i'm getting this exception when initializing the library:

System.TypeLoadException: 'Could not load type 'System.Runtime.Remoting.Channels.IChannelSender' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'

Is there any way i can make the assembly load correctly in .NET 6?

I've tried to manually link the System.Runtime.Remoting dll in the application, but that doesn't seem to work.

0

There are 0 answers