Help with UNC

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.
 
P

Paul Clement

¤ 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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top