473,766 Members | 2,159 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 6885
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
3204
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
3598
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
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10009
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...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9838
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...
0
8835
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7381
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
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
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...
3
2806
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.