Last post Mar 19, 2012 04:05 PM by utlandsfantomenno1
Mar 19, 2012 02:12 PM|utlandsfantomenno1|LINK
So, I'm having problems reaching a UNC path using System.Io.Directory.Exists("\\servername\foldername") from my web project.
If I use file explorer with the above path it opens the folder, if I use directory.exists("\\servername\foldername") from code I get an exception, "The network name cannot be found". The path actually resides on
sharepoint/webdav, better mention that, even though I don't think that is affecting the situation.
It works locally (on my dev machine where everything is local), but when uploading to the client site that uses an AD I get the above exception.
The user account of the app pool that runs this project has access to the folder. That account is a user account (mine), the account has admin privileges on the server where the folders and files reside. When I check the log, the exception states that it's
the above account executing the request. So I feel it should work.
Any ideas as to why it does not?
Mar 19, 2012 02:26 PM|avinash_bhudke|LINK
It has some soltion discussed.
Mar 19, 2012 04:05 PM|utlandsfantomenno1|LINK
The problem doesn't seem to be code related as such. Just discovered I can't browse the files from the SERVER using file explorer.
If I can't do that, then more coding is not the solution. Anyhow, the webclient service is installed, no webdav module in the IIS for the site and still no go.
At least now I have a starting point.