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'.