locked
Root element is missing at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke RRS feed

  • Question

  • User1256627138 posted

    Hi,

    Environment: Win XP ServicePpack 3

                      .Net3.5

                        VS 2008

       Can any one help me out for the below weird exception..

    System.Exception: Root element is missing.System.Xml.XmlException: Root element is missing.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlTextReader.Read()
       at System.Xml.XmlReader.MoveToContent()
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

       Also installed WSE 3.0,but still not resolved.

     

       Thanks in Advance..

    Wednesday, March 23, 2011 9:46 AM

Answers

  • User1256627138 posted

    Hi,

            Finally issue resolved..At the end it's a Permission related isasue in C:/Windows/Temp  folder for the ASPNET account..

    Once i added it works like a charmLaughing....But i was clueless based on the exception thrown by the framework..(i.e. Root Element Is missing..)

     

    Thanks all...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, April 9, 2011 1:30 AM

All replies

  • User-1757793930 posted

    Have you tried to perform a Service Update to the WSDL?

     

    Wednesday, March 23, 2011 10:45 PM
  • User1256627138 posted

    Hi,

    Yes i did that too..but no luck...

    Monday, March 28, 2011 1:36 AM
  • User-1269009881 posted

    Hi,

     I want to know what kind of technology is used on server-side, is asmx service or wcf service or some other web service? You could download Fiddle follow below link and use this tool to check response text.
     http://www.fiddler2.com/fiddler2/
     Could you show me your response text?

    thanks.

    Monday, March 28, 2011 10:37 PM
  • User1256627138 posted

    Hi, Thanks for the reply..

           It's ASMX webservice in server end..have tried fiddler..but the request it self is not

    going into the server(local IIS)..

           Issue is it's already working fine in my old Win XP.When i change into new machine with Similiar OS (WinXP)

    i am getting the issue. Ihave cross verified the .NET framework related ServicePacks in new machine,but still the issue

    exist.Looks like missing some Software Update..

              

    Friday, April 1, 2011 10:05 AM
  • User-1609584153 posted

    but the request it self is not

    going into the server(local IIS)..

     

    are you using any custom soap headers? also, check if you are missing anything in IIS configuration.

    Friday, April 1, 2011 5:12 PM
  • User1256627138 posted

    Hi,

            Finally issue resolved..At the end it's a Permission related isasue in C:/Windows/Temp  folder for the ASPNET account..

    Once i added it works like a charmLaughing....But i was clueless based on the exception thrown by the framework..(i.e. Root Element Is missing..)

     

    Thanks all...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, April 9, 2011 1:30 AM
  • User591890860 posted

    I am getting exact same exception stack when the web service is called from a windows application client whereas the same web service can be accessed from any web browser. Can you help please?

    Sunday, September 8, 2013 2:07 AM
  • User-872157355 posted

    Do you send to web service an xml in a string?

    Thursday, September 19, 2013 6:03 AM