locked
the root element is missing RRS feed

  • Question

  • Hi,
    I keep getting this exception when I do:

    ds.ReadXml(stmReader)

    here is my xml file :

    <?xml version="1.0" encoding="utf-8"?>
    <Settings>
     <UserSettings>
      <Server>192.168.0.1</Server>
      <UserName>sorcererdev</UserName>
      <Database>NewWorld</Database>
     </UserSettings>
     <UserSettings>
      <Server>192.168.0.1</Server>
      <UserName>sorcererdev</UserName>
      <Database>NewWorld</Database>
     </UserSettings>
    </Settings>


    How can I fix this ?
    Thx

    Wednesday, May 11, 2005 10:16 AM

Answers

  • I'll reply to myself....I've found out. I was doing this in my code :

    xmlReader = New XmlTextReader(stmReader)

    ds.ReadXml(stmReader)

    just removed the first line and it works

    Wednesday, May 11, 2005 10:26 AM

All replies

  • I'll reply to myself....I've found out. I was doing this in my code :

    xmlReader = New XmlTextReader(stmReader)

    ds.ReadXml(stmReader)

    just removed the first line and it works

    Wednesday, May 11, 2005 10:26 AM
  • how to use web service through a web server.
    when i use the same webservice in my application thorugh local host it works fine. but when i try to host the webservice over the webserver and try to use it gives me an error message.

    Server was unable to process request. --> Access to the path &quot;D:\Webs\uni251\returncallid\xmldata\usercallid.xml&quot; is denied.


    Exception Details: System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Access to the path &quot;D:\Webs\uni251\returncallid\xmldata\usercallid.xml&quot; is denied.

    Source Error:

    Line 45:         <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/returncallid/Service1/ReturnCallId", RequestNamespace:="http://tempuri.org/returncallid/Service1", ResponseNamespace:="http://tempuri.org/returncallid/Service1", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>  _
    Line 46: Public Function ReturnCallId(ByVal name As String, ByVal cmpId As String) As String
    Line 47: Dim results() As Object = Me.Invoke("ReturnCallId", New Object() {name, cmpId})
    Line 48: Return CType(results(0),String)
    Line 49: End Function

    Saturday, January 7, 2006 7:09 AM
  • hello

    may you write complete code(C#) about compress and decompress for me?

    i tried much,but my code dos not produce a good result.

    thanks

    Monday, August 25, 2008 3:45 PM