HighTechTalks DotNet Forums  

xmlserializers.dll

Dotnet Framework microsoft.public.dotnet.framework


Discuss xmlserializers.dll in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
lee atkinson
 
Posts: n/a

Default xmlserializers.dll - 06-23-2006 , 07:19 AM






Hi

I 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.Ad dReadCallback(String
name, String ns, Type type, XmlSerializationReadCallback read)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.InitCallbacks()
at
System.Xml.Serialization.XmlSerializationReader.Re adReferencingElement(String
name, String ns, Boolean elementCanBeType, String& fixupReference)
at
System.Xml.Serialization.XmlSerializationReader.Re adReferencingElement(String
name, String ns, String& fixupReference)
at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlS erializationReader1.Read13_authenticateResponse()
at
Microsoft.Xml.Serialization.GeneratedAssembly.Arra yOfObjectSerializer13.Deserialize(XmlSerialization Reader
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.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at ...


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.