Hi. I added a file called "sldata.txt" to my Silverlight solution (which I test in an ASP.NET site) in VS 2010. But when I try to access it using stream reader:
StreamReader sr = new StreamReader("sldata.txt");
I get a SecurityException - File operation not permitted. Access to path 'chatdata.txt' is denied. I get this even when trying to create a new file and even when I try to access a file that doens't even exist. What am I doing wrong here? I have given NETWORK SERVICE full permission to the file and I tried editing the web.config file in my ASP.NET site. Does the file path have to be different?