|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
xmlserializers.dllI have a .NET 2.0 web application project that provides a webservice and also consumes a webservice. I have just noticed that ..xmlserializers.dll file is now being created automatically. I understand that this is created by the sgen.exe for creating Xml Serializers. However, I can not see any reference to the automatic creation of these, or how possibly the automatica creation of these has occured. Now that the files are created, I get an error when the XML response from the remote web service is parsed (see below). Regards, Lee If I delete the dll, it works fine. What has happened to to make the automatica generation of the dll, and why, if I don't delete it, I get an error - probably becuase it's using it and generating one at run time as well? System.InvalidOperationException: There is an error in XML document (1, 444). ---> System.ArgumentException: Item has already been added. Key in dictionary: '......' Key being added: '.......' at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value) at System.Xml.Serialization.XmlSerializationReader.AddReadCallback(String name, String ns, Type type, XmlSerializationReadCallback read) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.InitCallbacks() at System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(String name, String ns, Boolean elementCanBeType, String& fixupReference) at System.Xml.Serialization.XmlSerializationReader.ReadReferencingElement(String name, String ns, String& fixupReference) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read13_authenticateResponse() at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer13.Deserialize(XmlSerializationReader reader) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle) at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at ... |
|||||||||||||||||||||||