Hello Michiel Van Oosterhout,
Unfortunately Sitefinity 4.x still does not support Medium trust. This is due to the WWF4 activation that requires Full trust in order to be operational.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items