Nov 24, 2011 at 2:09 PM
Edited Nov 24, 2011 at 2:10 PM
I try to enumerate all the jobs for all users. This work fine as long as there is no jobs created by a service. This service is running as Local System account.
Here is the error and stack trace
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at SharpBits.Base.IBackgroundCopyJob.SetNotifyInterface(Object Val)
at SharpBits.Base.BitsJob.set_NotificationInterface(IBackgroundCopyCallback value) in harpBits.Base\BitsJob.cs:line 610
at SharpBits.Base.BitsJob..ctor(BitsManager manager, IBackgroundCopyJob job) in harpBits.Base\BitsJob.cs:line 42
at SharpBits.Base.BitsJobs.Update() in e:\2K7\src\ext\SharpBits.Base\BitsJobs.cs:line 65
at SharpBits.Base.BitsJobs.Update(IEnumBackgroundCopyJobs jobList) in SharpBits.Base\BitsJobs.cs:line 31
at SharpBits.Base.BitsManager.EnumJobs(JobOwner jobOwner) in SharpBits.Base\BitsManager.cs:line 100
I am testing this on a Windows 7 64 bit No UAC. I have tried the sample located here
http://www.codeproject.com/KB/IP/sharpBITS.aspx?msg=2792345 by changing the enumeration to AllUsers with the same result.
If I list the jobs using BitsAdmin there is no error and all jobs are listed.
Does someone have an idea?