Help with UNC

  • Thread starter Thread starter John Cosmas
  • Start date Start date
J

John Cosmas

My app needs to access files accessible via UNC on a local network path and
get to some DOCs, XLSs and PDFs. I have to run the system.io.file.exists
function to see if the document are where it is said to me. I can run a
test like "c:\printer.log" and it passes using the account "NT
AUTHORITY\NETWORK SERVICE". I also added the same user account to the UNC
root so it has access to it content. But my code still fails to get access
to the underlying docs.
 
¤ My app needs to access files accessible via UNC on a local network path and
¤ get to some DOCs, XLSs and PDFs. I have to run the system.io.file.exists
¤ function to see if the document are where it is said to me. I can run a
¤ test like "c:\printer.log" and it passes using the account "NT
¤ AUTHORITY\NETWORK SERVICE". I also added the same user account to the UNC
¤ root so it has access to it content. But my code still fails to get access
¤ to the underlying docs.
¤

Is this a web application?

The Network Service account is a local account so if you are attempting to access file resources on
a remote machine a corresponding local account will need to be created on the other machine (with
the same password and access to the files in question) in order to support delegation.


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
Back
Top