I have two programs which are accessing a directory using the .NET Directory class static methods.
The first program is only reading a directory, while the second is attempting to rename a directory. The directory being renamed by the second program may not be the same directory that is being read by the first program.
When the second program attempts to rename the directory (i'm using the Directory.Move(sourceDir, destDir) function ), I get an error like:
system.io.exception access to the path is denied
I suspect that the reason this is happening is that I should be using DirectoryInfo methods (which are instance, not static). Has anyone run into this problem before?