• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

Permision denied when running as a service

I wrote an application that captures the screen an saves the picture to the disk. Then I modifyed it so it can run as a service but I get the message "Permision denied" when it tryes to save the picture.
What could be the problem?
1 Solution
Did you close the handle to the (first) saved file, after saving it ?
When running as a service, the default is to run under the NT system account which has no access to network drives etc, and it may not have access to areas of local drives, depending on your security setup for the rqd directory.  Either go into Control Panel/services and set your service to run inder your UserID/password (or one which has the access rqd) or if it is a file on the local disk, check that system has write/delete access to it.

rvladutAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now