File access question

  • Thread starter Thread starter Jason Hurder
  • Start date Start date
J

Jason Hurder

Hello folks,

I am experiencing a rather strange problem. I have written a service
that attempts to open a file on a network share. When I try to open the
file from my service, I get the "Access is denied" error. However, if I
try to open the file from a GUI application, I can open the file without
problem. I've tried using the FileIOPermissions object to get around the
error with no luck. Obviously I am missing something very fundamental,
the file is accessible to 'Everyone'. Does anybody know what I am doing
wrong? Thank you,

Jason
 
Try configuring your service to run as a domain account that has permissions
to the network folder.
 
Back
Top