tryContext.Parameters["ServiceName"]XmlDocument["configuration"]["appSettings"]

解决方案 »

  1.   

    thank you ,saucer!I hadnot expected that I could get the answer so soon and it's from you.You are so famous that I got to hear of you half year ago.
    I tried to give you the score but failed tonite.It's the first time I gave the score out, you know. I 'll do that tommorrow.
    I am sorry that I just got time to try the 2rd answer you gave.They are correct.
    But I wonder how to rewrite the following 2 sentence.
       strTemp = strTemp.Remove(strTemp.LastIndexOf("\"), Len(strTemp) _
    – strTemp.LastIndexOf("\"))
        Dim FileInfo As System.IO.FileInfo = New _
    System.IO.FileInfo(strTemp & "\web.config")the main reason is "\".