Is it possible in ASP.NET (not MVC) in IIS7.5 on Windows Server 2008R2 to read an XML file from a subfolder beneath the web app using a relative URL?
Something like:
Dim rdr As XmlTextReader
rdr = New XmlTextReader( "xml\foo.xml") // have also tried "~/xml/foo.xml"
Given this folder hierarchy:
webapp
styles
images
xml
I haven't been able to get it to work. If it's possible, is my relative url not formed correctly?
P.S. I am trying to use HTTP protocol so I can see the request being made in the Network monitor in the browser Developer Tools, and also to avoid file systems permissions issues. I had it working using the physical path in Windows Server 2003 but that code doesn't work in 2008R2 and I haven't been able to figure out which virtual user or machine identity needs permissions. I've given permissions to IUSR and to ASP.NET v4.0 Application Pool Identity.