I'm attempt to debug a program I wrote, but I'm running into a problem with the StreamReader function. I'm specifically getting a Could not find a part of the path issue while debugging
when it hits this function. Being that I was in the debugger, I checked the variable to make sure the path was correct and that it resolved to a valid file, which it did.
Specifically the code is
StreamReader fsio = new StreamReader(respFileLoc);
Where the respFileLoc
variable is a string that contains the location of the file.
I've looked around and I'm assuming this error has something to do with file permissions, but my question is, how do I set the proper permissions? How does the debugger run the program (in what user level) and can I change it?
I'd prefer not to run this program outside of the debugger because of the nature of the application could mess up my operating environment and I'm using breakpoints in the debugger to prevent this from happening.