Question Check File Permission

pmagne

New member
Joined
Sep 16, 2009
Messages
1
Programming Experience
Beginner
Hello,

I've hosted a webservice on IIS 7.0, and this webservices is checking the file permission of different file on another server.
I use System.IO.File.Exists to check if I have access to the file.
But I always get the answer "False".
If I check a file that is on my IIS server ( the same computer ), it's ok, but for files in another server, it doesn't work ?

I guess it's a security probem..
Do I have to give access to a certain user on the remote server that IIS uses ? which one it is ?

In my web.config i use : <identity impersonate="true" /> to use the windows logging account.

Thank's for help

PM
 

Latest posts

Back
Top