I'm running into a problem while trying to read from a text file I have stored in my _layouts/myaspapp folder. I've tried everything I've been able to find on the web, but will always either get a File Not Found error (while trying to use StreamReader or something similar or a 401 Unauthorized (using HttpWebRequest/Response).
I'm out of ideas on how to access this file and read the text from it. I am able to see the text file itself if I go to http://server/_layouts/myaspapp/text.txt, but I have not been able to open it and read it from C#.
Any tips or suggestions would be much appreciated.