|
Posted by Corey Ellsworth on August 11, 2006, 4:20 pm
Please log in for more thread options
I have written a Windows Service in VB.NET. As part of its processing
routine, this service deletes all files in a temporary directory. For
compatablity with a 3rd party component that we are using, this service is
running under a Windows domain account. I have given the account that the
service is running under "Full Control" of the temporary directory it is
supposed to delete the files from. However, when the code tries to do the
deletion an "Access is denied" error is handled and the files are not
deleted. How can an account that has "Full Control" permissions to a
directory be denied access to delete files in that directory? What user
permission (Local Security Policy?) governs the ability for a user account
to delete files? Is there something special about a user account that is
running as a service that would preclude it from delete files? Thanks for
any help that can be offered.
Corey Ellsworth
|