Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16028

Help with IO.DirectoryInfo

$
0
0
I'm new to VB.net and tasked with moving an older web application to a new server. Among other functions, this application looks for PDFs in a folder using IO.DirectoryInfo. When I run the application within Visual Studio, it works with no error. But when I publish the site to IIS v10 on a network server, the following code returns the following error:

Dim di As New IO.DirectoryInfo("\\Pdf-server\Pdfs\New")

produces error (not sure why the error message strips the slashes '\'):

Source: mscorlib Exception: Access to the path \Pdf-serverPdsNew is denied.

The folder's permissions and sharing are open to this account & folder's read-only is turned off. Any idea what's happening here?

Viewing all articles
Browse latest Browse all 16028

Trending Articles