File Access Permission Denied...
Posted on 2012-03-12
I have ASP.NET page which is on Server1 and is trying to access a text file from a folder in Server2.
1. The ASP.Net code sits in a virtual directory on the IIS.
2. There is another virtual directory in the IIS which points to a location on the Server2 "\\Server2\Foldery\". I use this virtual directory and do Server.MapPath and get the loaction from this virtual directory. The path returned is right.
3. When I do a File.Exists(Path) it returns false, even though the file exsits on the Server2.
4. Can somebody help with the permissions that I have to give for the
a. Virtual Directory hosting the ASP.Net page. b. Virtual Directory poiting to the Server2. c. Folder on the Server2.