I have a line of code checking if a directory exists and then getting the list of files in it.
System.IO.Directory.Exists(@"\ServerFolder");
I works when I test it (run from visual studio), but when I deploy the web site, it always returns false.
I do the same verification for another folder, on another server (let's say Server2) and it works fine.
I then thought it was an access issue, but the shared folder and network have all access to everyone... Is there another reason why it would not work?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…