473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Error in XML Document

Hi

A web method which returns a dataset works fine when the web service it
belongs to is running locally. When run on a remote server I get the
following error;

Unhandled Exception: System.InvalidOperationException: There is an error in
XML document (1, 142804). ---> System.Xml.XmlException: The 'user_email'
start tag on line '1' does not match the end tag of 'us'. Line 1, position
142823.

even though I am using the exact same db in both cases. Any ideas how to
solve this problem when the web method is running on a remote server? The
full web service code is here; www.infovis.biz/StaffWS.zip.

Thanks

Regards

Nov 21 '05 #1
3 6836
Could it be that there is a limit on how much data a web method can return
at a time? In which case if the web method stops reading data in the middle
of a record then the xml tags won't match.

Regards

"John" <jo**@nospam.infovis.co.uk> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl...
Hi

A web method which returns a dataset works fine when the web service it
belongs to is running locally. When run on a remote server I get the
following error;

Unhandled Exception: System.InvalidOperationException: There is an error in XML document (1, 142804). ---> System.Xml.XmlException: The 'user_email'
start tag on line '1' does not match the end tag of 'us'. Line 1, position
142823.

even though I am using the exact same db in both cases. Any ideas how to
solve this problem when the web method is running on a remote server? The
full web service code is here; www.infovis.biz/StaffWS.zip.

Thanks

Regards

Nov 21 '05 #2
Do you have an estimation on how bit the data could be? There is a
configuration setting you need to set up in your machine.config
called maxrequestLength in the httpRuntime element.

Are you using WSE at all?

hongmei
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
Could it be that there is a limit on how much data a web method can return
at a time? In which case if the web method stops reading data in the middle of a record then the xml tags won't match.

Regards

"John" <jo**@nospam.infovis.co.uk> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl...
Hi

A web method which returns a dataset works fine when the web service it
belongs to is running locally. When run on a remote server I get the
following error;

Unhandled Exception: System.InvalidOperationException: There is an error

in
XML document (1, 142804). ---> System.Xml.XmlException: The 'user_email'
start tag on line '1' does not match the end tag of 'us'. Line 1, position 142823.

even though I am using the exact same db in both cases. Any ideas how to
solve this problem when the web method is running on a remote server? The full web service code is here; www.infovis.biz/StaffWS.zip.

Thanks

Regards


Nov 21 '05 #3
Hi

There are approximately 600 records from an access table. When exported to a
text file, it is only about 64KB. I assume as xml it would be slightly more
with all those tags.

What configuration setting do I need to set? Any link on more info?

Thanks

Regards
"HongMei Ge" <ho******@online.microsoft.com> wrote in message
news:OT**************@TK2MSFTNGP10.phx.gbl...
Do you have an estimation on how bit the data could be? There is a
configuration setting you need to set up in your machine.config
called maxrequestLength in the httpRuntime element.

Are you using WSE at all?

hongmei
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:uS**************@TK2MSFTNGP10.phx.gbl...
Could it be that there is a limit on how much data a web method can return
at a time? In which case if the web method stops reading data in the

middle
of a record then the xml tags won't match.

Regards

"John" <jo**@nospam.infovis.co.uk> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl...
Hi

A web method which returns a dataset works fine when the web service it belongs to is running locally. When run on a remote server I get the
following error;

Unhandled Exception: System.InvalidOperationException: There is an error
in
XML document (1, 142804). ---> System.Xml.XmlException: The

'user_email' start tag on line '1' does not match the end tag of 'us'. Line 1,

position 142823.

even though I am using the exact same db in both cases. Any ideas how to solve this problem when the web method is running on a remote server? The full web service code is here; www.infovis.biz/StaffWS.zip.

Thanks

Regards



Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andrew V. Romero | last post by:
I have a script that I am working on for an intranet tool and in this script I have a form, which when submitted the onSubmit command calls calculate(). In this calculate function, I have it do...
7
by: debugger | last post by:
hello, Question, on page load, I populate an existing drop down with createElement and appendChild. It works fine so far. BUT I want to automatically select some option from this populated drop...
9
by: torbs | last post by:
Hi I am creating a page for stretchfilm. In this page you can chose between a short medium and long version of the film at any point in the film. It is in norwegian, but just press play. URL:...
5
by: HopfZ | last post by:
I made two shortcut functions for document.getElementById as: function EBI2(id){return document.getElementById(id)}; var EBI3 = document.getElementById; But EBI3 don't work. EBI2('myText');...
1
by: solomon_13000 | last post by:
connection.asp: <% Sub RunQueryString (pSQL,parms) on error resume next Set conn = Server.CreateObject("ADODB.Connection") conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &...
4
by: dr1ft3r | last post by:
Hey guys, I'm building a site for a landscaping business down the street and can't seem to get part of the code functioning correctly. The code fails on line 68 where I make a reference to an...
1
by: mudasserrafiq | last post by:
I am using following asp file default.asp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <META content="0...
6
by: dragiton | last post by:
ASP Code Redirect Error Hello I recently relaunched a website containing asp code which used to work perfectly. However, after resetting up the SQL DB and trying to work out some site bugs I have...
9
by: ahilar12 | last post by:
1. <head> 2. <script type="text/javascript"> 3. </script> 4. </head> 5. <body> 6. <form> 7. <select name="team" id="mylist" > 8. <option></option> 9....
3
by: graphicssl | last post by:
Okay, so first of all, I'm a designer first and a light coder second (I'm only really trained with HTML and CSS). So I apologize for having to post about something that's probably super-trivial! ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.