C# Access Denied
Posted: Sat Feb 16, 2008 2:32 pm
I'm trying to write something in C#, and the filestream is supposed to access a certain folder. The code is...
But everytime I try, I get the same error...

However, I can open another file with a different application, though it's in the same folder as the one that won't allow my program access.
Any solutions?
Code: Select all
FileStream stream = new FileStream("C:\\Documents and Settings\\***** *****\\Desktop\\Test Folder", FileMode.Open);

However, I can open another file with a different application, though it's in the same folder as the one that won't allow my program access.
Any solutions?