473,773 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.InvalidO perationExcepti on: There is an error in
XML document (1, 142804). ---> System.Xml.XmlE xception: 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 6886
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.in fovis.co.uk> wrote in message
news:uk******** ******@TK2MSFTN GP09.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.InvalidO perationExcepti on: There is an error in XML document (1, 142804). ---> System.Xml.XmlE xception: 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 maxrequestLengt h in the httpRuntime element.

Are you using WSE at all?

hongmei
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:uS******** ******@TK2MSFTN GP10.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.in fovis.co.uk> wrote in message
news:uk******** ******@TK2MSFTN GP09.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.InvalidO perationExcepti on: There is an error

in
XML document (1, 142804). ---> System.Xml.XmlE xception: 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******@onlin e.microsoft.com > wrote in message
news:OT******** ******@TK2MSFTN GP10.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 maxrequestLengt h in the httpRuntime element.

Are you using WSE at all?

hongmei
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:uS******** ******@TK2MSFTN GP10.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.in fovis.co.uk> wrote in message
news:uk******** ******@TK2MSFTN GP09.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.InvalidO perationExcepti on: There is an error
in
XML document (1, 142804). ---> System.Xml.XmlE xception: 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
2356
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 some calculations and write out a new document using document.write(). One of the lines it writes is (the whole script is at the bottom of this email). pageData = PageData+"<b>Patient Data</b><br>Wt: "+weight+" "+weightUnits+" &nbsp&nbsp Ht:...
7
5885
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 down. So i have this statement: document.getElementById("dropdown").options.selected=true; And it gives me an error.
9
2512
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: http://www.media.uio.no/sherlockholmes/main.php?plugin=quicktime&hastighet=lav
5
4439
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'); //works EBI3('myText'); //unexpected error
1
5036
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=" & Server.MapPath("/db/VideoBlog.mdb") & ";" Set cmd = Server.CreateObject("ADODB.command") With cmd
4
2645
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 iframe's src property. Being that IE does not follow standard and considers an id, name, etc as a qualifying identifier for the document.getElementById object, I double checked to make sure that there's only one instance of id = "servif" and I never use...
1
3887
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 Days" name=revisit-after> <META content=info@siderinternational.com name=email> <META content="Omer Safdar" name=author> <META content=MegaStudios.com name=publisher> <META content="Copyright ©2005 - MegaStudios.com" name=copyright> <SCRIPT...
6
2444
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 the following problem: any suggestions? I have a newuser login page that creates a new SQL DB table record with login name and password then takes the user to the next (page) step in the registration setup. Currently the record is created in the...
9
3206
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. <option>north</option> 10. <option>south</option>
3
3600
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! I'm working on setting up a shopping cart for a one-product web site, and I'm using HTML and CSS, with ASP for the shopping cart. The ASP takes the information from the form on the shopping cart, and formats it in to two e-mails: one for the company...
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7463
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.