0
我有一个Payload
类型的财产object
。
我填写有效载荷与匿名类型,并把它关闭,然后我得到这个丑陋的错误:NServiceBus消息是否可以具有匿名类型属性?
2014-03-12 15:50:25,649 [7]
ERROR NServiceBus.Unicast.Transport.TransportReceiver [(null)] <(null)> -
Failed to serialize message with ID: fc8d44c1-3750-4658-ba91-a2ec010507aa`
System.Runtime.Serialization.SerializationException:
An error occurred while attempting to extract logical messages from
transport message NServiceBus.TransportMessage --->
Newtonsoft.Json.JsonSerializationException:
Error resolving type specified in
JSON '<>f__AnonymousType2`2[[System.String, mscorlib],[System.Int32,mscorlib]], MyProject'.
Path '[0].Payload.$type', line 1, position 366. ---> Newtonsoft.Json.JsonSerializationException: Could not load assembly 'MyProject'.