an unexpected end of file parsing name has occurred

G

Guest

I have a business object which I am sending through a webservice in order to
update details on the data layer. When I get to the web service layer,
though, the following exception occurs:

XmlException: This is an unexpected token. The expected token is 'NAME'.
Line 1028, position 159.]
System.Xml.XmlTextReader.SetAttributeValues() +323
System.Xml.XmlTextReader.ParseElement() +138
System.Xml.XmlTextReader.Read() +94
Microsoft.Web.Services2.Xml.XmlSkipDTDReader.Read()
System.Xml.XmlLoader.LoadCurrentNode() +612
System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +49
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) +102
System.Xml.XmlDocument.Load(XmlReader reader) +72
Microsoft.Web.Services2.SoapEnvelope.Load(Stream stream)
Microsoft.Web.Services2.OutputStream.Close()
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) +162
//My internal calls go here

Prior to this error, I was getting another exception:

an unexpected end of file parsing name has occurred

The file I am passing across is 119KB in size (I don't know if this is
significant).

Can anyone shed any light on these errors?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top