error identification problem
-
i m calling a web method through ma client which returns a xmlnodelist but it is not working and returns the following error To be XML serializable, types which inherit from IEnumerable must have an implementation of Add(System.Object) at all levels of their inheritance hierarchy. System.Xml.XmlNodeList does not implement Add(System.Object). i cant understand where does this error leads to??? Warm Regards Bia
-
i m calling a web method through ma client which returns a xmlnodelist but it is not working and returns the following error To be XML serializable, types which inherit from IEnumerable must have an implementation of Add(System.Object) at all levels of their inheritance hierarchy. System.Xml.XmlNodeList does not implement Add(System.Object). i cant understand where does this error leads to??? Warm Regards Bia
First, In what point this exception has been thrown? Second, from what is looks like in the error itself and in the information from the metadata and http://msdn2.microsoft.com/en-us/library/system.xml.xmlnodelist_members.aspx[^] it looks like XmlNodeList (or the classes it inherit from) doesn't implement the proper interfaces so it could be serialized... and you can't transfer it from your web service to the client... so it looks like this error leads to finding another way transfering the data ;) good luck, Tal Kain.