|
-
Feb 3rd, 2005, 04:52 PM
#1
Thread Starter
Lively Member
System.Security.Securityexception [RESOLVED]
I have a service that uses the fso to copy files to different directories and I am getting the following intermittent error:
Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)
I searched MSDN and found that the exception can be caused by file or folder permissions being improperly set, or the file can be in use by another process. I have caught the error. And, I believe that the files that cause the error are in use by another process because if I stop and restart the service they copy perfectly.
Here's are my questions: How can I find out what process is denying access to the files? And, how should I handle the exception?
I found a post with this title: fso.movefile permission denied that had a similar situation.
I tried everything in that post and nothing worked. I don't have a streamreader open. I'm still getting the error occassionally.
Any help is more than appreciated!
Last edited by Malim; Feb 7th, 2005 at 04:30 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|