This happens on Windows Phone 8.1, in a WinRT project (not Silverlight), as a result of a security-critical method call:
{System.MethodAccessException: Attempt by security transparent method 'MsgPack.Serialization.SerializationContext..ctor(MsgPack.Serialization.SerializerRepository, MsgPack.PackerCompatibilityOptions)' to access security critical method 'System.Collections.Concurrent.ConcurrentDictionary`2<System.__Canon,System.__Canon>..ctor()' failed.
at MsgPack.Serialization.SerializationContext..ctor(SerializerRepository serializers, PackerCompatibilityOptions packerCompatibilityOptions)
at MsgPack.Serialization.SerializationContext..ctor(SerializerRepository allwaysNull)
at MsgPack.Serialization.SerializationContext..cctor()}
The code that produces this exception is, in its entirety:
private byte[] Serialize(IList<MessagePackObjectDictionary> syncInfo)
{
return MessagePackSerializer
.Get<IList<MessagePackObjectDictionary>>()
.PackSingleObject(syncInfo);
}