...Root Element is missing Error!

  • Thread starter Balasubramanian Ramanathan
  • Start date
B

Balasubramanian Ramanathan

Hi,

I am using webservice.htc to call a asp.net web service. The web service
works find for the first...when i call it second time i am gettting an Error
.." root element is missing"..this is happening only in remote...when i test
the same application locally it works find... the remote server has windows
2003 with .net frame work 1.1 sp1 installed..

Any help???

Thanks & Regards
 
D

Dan Rogers

Hi,

Try tracing the message that is received at the server side. Also, it
isn't clear which side is throwing your "root missing" error message.
Since there are two messages and two senders involved (you send message
that represents your request, the server receives it. The error could
happen right here. The server sends a message back, and this message also
could be poorly formed.

Also, this problem can happen if you are reusing the envelope and adding a
second body child. The trace will let you see this.

Install a trace extension (available from gotdotnet.com) on your service
via a web.config change. Then run the trace.axd utility at the vroot of
your service in a browser, and send the message from your client. Then
send it again. Then refresh the trace.axd page. There should be two
requests logged, and you can compare what you expect to see to what you do
see to help you determine what the probable causes are.

Be sure to have trace="on" in your web.config as well.

Best regards

Dan Rogers
Microsoft Corporation
--------------------
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top