I'm using asp.net with visual basic .net as the code behind. I want to be able to check to see if a folder on another computer exists. Now with the code I supplied below it works locally, but I cannot get it to work with a network share. Now I can access the network share from the computer I making the call from by going through network places. Also if I type the foldername that I provided into the address bar of explorer the foldername is brought up in explorer

This is the code I have been using:

foldername = "\\ServerName\Share\FolderName"

<code>
If Directory.Exists(folderName) = False Then
'Directory.CreateDirectory(folderName)
Response.Write("<br> Folder was Not Found <br>")
Response.Write(Directory.Exists(folderName).ToString)
Else
Response.Write("<br> Folder was Found")
End If
</code>

Thanks in advance