Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

This is an unexpected token. The expected token is 'NAME'.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ben Walling - 21 Sep 2006 23:29 GMT
I'm getting the following error on one of 110 machines that is using a
webservice to upload database changes to a central location:

System.Web.Services
Server was unable to read request. --> There is an error in XML document (3,
2148906). --> This is an unexpected token. The expected token is 'NAME'. Line
3, position 2148909.
  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)

I'd post the XML itself, but it's around 4MB and rather large.  It
references "Line 3, position 2148909", but there isn't a position 2148909 on
line 3.  I've checked the XML in XMLSpy and some other tools and it seems to
be fine.  The XML is a .Net dataset, so it usually deals with any odd
characters for me.
John Saunders - 22 Sep 2006 03:39 GMT
> I'm getting the following error on one of 110 machines that is using a
> webservice to upload database changes to a central location:
[quoted text clipped - 18 lines]
> be fine.  The XML is a .Net dataset, so it usually deals with any odd
> characters for me.

I've seen this error when I was modifying an XMLDocument. Under some
circumstances, when I added nodes to the document, they were added, but the
document didn't update its length. This caused it to be truncated in the
middle of an element, producing this error.

I don't remember exactly how I resolved this, but maybe if you copied the
document before transmitting it, then XmlDocument would remember its length.

John

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.