Medium package used in the Component. Make sure it is the same as the components connected to both ports are using.
package Medium = Media.myMedia.Interfaces.PartialMedium;