To solve both of the problems from the stack traces below, follow these steps:
-
Add the following to an XML file in the project:
<?xml version="1.0" encoding="utf-8" ?> <linker> <assembly fullname="System.ServiceModel"> <type fullname="System.ServiceModel.Channels.ChannelFactoryBase`1">