Hi,
This is pretty much a noub question, but I'm trying to work with MSMQ with the following configuration:
configurator.ReceiveFrom("msmq://localhost/TestQueue");
configurator.UseMsmq();
configurator.VerifyMsmqConfiguration();
configurator.Subscribe(x => x.LoadFrom(container));
configurator.UseXmlSerializer();
configurator.UseLog4Net();
configurator.EnableMessageTracing();
And i'm getting the following error when trying to use a message with abstract class in one of the properties.
System.Runtime.Serialization.SerializationException: Failed to deserialize the message ---> Newtonsoft.Json.JsonSerializationException: Could not create an instance of type XXXX. Type is an interface or abstract class and cannot be instantated.
I have two questions:
1. How can I send this kind of message?
2. Why the source of this exception is from JsonSerializer, when I explicitly set the configuration to use XmlSerializer?
Your help please,
Nir
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/F4cmByvU998J.
For more options, visit https://groups.google.com/groups/opt_out.
i need to see your message class definition
-d
On Mon, Aug 20, 2012 at 9:14 AM, Nir Varon <nva...@gmail.com> wrote:
Hi,
This is pretty much a noub question, but I'm trying to work with MSMQ with the following configuration:
configurator.ReceiveFrom("msmq://localhost/TestQueue");
configurator.UseMsmq();
configurator.VerifyMsmqConfiguration();
configurator.Subscribe(x => x.LoadFrom(container));
configurator.UseXmlSerializer();
configurator.UseLog4Net();
configurator.EnableMessageTracing();
And i'm getting the following error when trying to use a message with abstract class in one of the properties.
System.Runtime.Serialization.SerializationException: Failed to deserialize the message ---> Newtonsoft.Json.JsonSerializationException: Could not create an instance of type XXXX. Type is an interface or abstract class and cannot be instantated.
I have two questions:
1. How can I send this kind of message?
2. Why the source of this exception is from JsonSerializer, when I explicitly set the configuration to use XmlSerializer?
Your help please,
Nir
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/S23-jpM5mn0J.
-d
-d
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/F4cmByvU998J.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/wB-ZtKjPhGUJ.
-d
-d
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/S23-jpM5mn0J.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
-d
-d
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/S23-jpM5mn0J.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/sT3R8xaDq4IJ.
-d
-d
-d
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/wB-ZtKjPhGUJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/sT3R8xaDq4IJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/mKyJiHcWMDMJ.