How can I read the file in virtual directory in IIS with c#?

VERB95

New Member
here are lots of xml files in my virtual directory in IIS website. For example: \[code\]IIS://localhost/W3SVC/8670/root/log2/NoLog4NetFile.UnitTest.nunit-results.xml\[/code\]I want to read this xml file.I tried this:\[code\]string XMLPATH = @"IIS://localhost/W3SVC/8670/root";DirectoryEntry dir = new DirectoryEntry(XMLPATH);.....get xml file....???XmlTextReader reader = new XmlTextReader(xmlfilereader);....read the xml file....\[/code\]I know how to read xml file.But I just don't know how to get the xml file reader in IIS virtual directory . What can I do ?Thanks.
 
Back
Top