Robert, Are you using the The XmlMessageFormatter to create your Message? It uses the XmlSerializer under the covers, so the restriction not being able to serialize a Hashtable with the XmlSerializer applies just the same to the XmlMessageFormatter. If you need the Hashtable serialized to XML you have to either write a wrapper that the XmlSerializer can handle or serialize the Hashtable with the SoapFormatter from the System.Runtime.Serialization.Formatters.Soap namespace.
HTH, Christoph Schittko Software Architect Mshow - a division of InterCall ----- Original Message ----- From: "Rolls, Robert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 06, 2002 11:43 PM Subject: Re: [DOTNET] MSMQ XMLMessageFormatter BUG. > hmm in my ignorance and not actually able to remove my previous mail before > looking uterly stupid, I was initializing the value of the hashtable in the > default constructor! > > Yes it would seem as though the hashtable is not serialised! bang goes my > wonderfull idea. > > -----Original Message----- > From: Morten Abrahamsen [mailto:[EMAIL PROTECTED]] > Sent: Friday, 7 June 2002 14:35 > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] MSMQ XMLMessageFormatter BUG. > > > Is the hashtable serializable ? > > Morty > > -----Original Message----- > From: Rolls, Robert [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 5:43 AM > To: [EMAIL PROTECTED] > Subject: [DOTNET] MSMQ XMLMessageFormatter BUG. > > > Unfortunately there seems to be a bug when serialising a class into the > body of an MSMQ message, when you have a public member of type hashtable > as following class below shows - > > public class DeliveryJob { > public Hashtable Properties = null; > // Constructor > public DeliveryJob() { > Properties = new Hashtable(); > Properties.Add( "ServerAddress", "10.32.54.115" > ); > } > }; > > When sending an object of the DeliveryJob type to MSMQ you receive the > following exception text > > ' There was an error reflecting 'MSMQTestApplication.DeliveryJob' > > It seems to only fail on using the public access modifier as if I remove > public it works, it also works if I the internal access modifier. > > Does anybody know if MS are aware or if there's a fix to this problem. > > Regards > Robert Rolls. > > > > **********************************************************************" > This correspondence is for the named person's use only. It may contain > confidential or legally privileged information or both. " No > confidentiality or privilege is waived or lost by any " mistransmission. > If you receive this correspondence in error, please immediately delete > it from your system and notify the sender. You must not disclose, copy > or rely on any part of this correspondence if you are not the intended > recipient. > > Any views expressed in this message are those of the individual sender, > except where the sender expressly, and with authority, states them to be > the views of Vodafone. > > This email has been checked for viruses. > ************************************************************************ > ********************** > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, > or subscribe to other DevelopMentor lists at http://discuss.develop.com. > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > > > **********************************************************************" > This correspondence is for the named person's use only. It may > contain confidential or legally privileged information or both. " > No confidentiality or privilege is waived or lost by any " > mistransmission. If you receive this correspondence in error, please > immediately delete it from your system and notify the sender. You > must not disclose, copy or rely on any part of this correspondence > if you are not the intended recipient. > > Any views expressed in this message are those of the individual sender, > except where the sender expressly, and with authority, states them to > be the views of Vodafone. > > This email has been checked for viruses. > **************************************************************************** ****************** > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.