Question: I have a DirectoryInfo variable declared as followed:

```
DirectoryInfo rootDirectory = new DirectoryInfo(@"\\server01\Shared\Saved Stuff\");

```

The following code returns true when I run my website from localhost but false when I publish it and upload it.

```
bool doesItExist = rootDirectory.Exists;

```

I do not believe (in fact I am convinced) this is a security permissions issue since I gave the entity "Everyone" full access to the destination folder. Anyone have a clue as to why this may be happening and only exclusively on live side? FYI, when I remote desktop to the server01 and type in the above path, I can access it without any problems, just as well as I can from a local machine.

Answer: 
Assuming you are using windows authentication for your site...

Most likely you are running into "NTLM one-hop" - credentials passed to server from other machine can't be reused to access third machine and as result \server01\shared is being accessed by non-authenticated user.

To confirm - try to use browser on the server where you deployed the code to navigate to the page that uses this code.
Try this 

```
DirectoryInfo rootDirectory = new DirectoryInfo(HttpContext.Current.Server.MapPath(@"\\server01\Shared\Saved Stuff\"));

```