I am creating an ASP.NET application where I am going to need to write a text file in a network share folder. The problem I am experiencing is that when I try the directory exists function through an ASP.NET page it always returns false... I cut and paste the exact code into a windows forms application, and it returned true. The directory permissions are already setup to allow Everyone full access, so it is not an access issue... here is the code...
ok = Directory.Exists("//servername/folder1/folder2"
;
Response.Write("<BR><BR>EXISTS: "+ ok);
P.S.... I have already tried reversing the direction of the slashes (which both worked in the windows forms app), and it still returned false...
If anyone has encountered and solved this problem, please respond !
ok = Directory.Exists("//servername/folder1/folder2"
Response.Write("<BR><BR>EXISTS: "+ ok);
P.S.... I have already tried reversing the direction of the slashes (which both worked in the windows forms app), and it still returned false...
If anyone has encountered and solved this problem, please respond !