This project is read-only.


SharpBits does not work with runas command


I used SharpBits.Base.dll in my project to transfer file over network. but i am running this in background with admin account..
When i use runas to the exe the job is created but it is suspended.
When resume this job then it gives exception 'Exception from HResult: 0x80200003'
Please Help..
Closed Mar 12, 2015 at 12:30 PM by xidar


xidar wrote Dec 16, 2012 at 8:57 AM

you may need to set credentials for the particular jobs, check this section on BITS documentation

Also using the SharpBITS windows client (or other similar tools) you can check if the jobowner is set correctly, and handle authentication.

radsul wrote Dec 17, 2012 at 3:55 AM

but my application is running under administrator privileges not as current logged in user. and bits does nor supports run as command. How can i get the currently logged in user credentials?

xidar wrote Dec 17, 2012 at 4:22 PM

actually looking up the error code, seems you have not added any files to the job

BG_E_EMPTY (0x80200003)
The job must contain one or more files before you can resume the job.

oDlouhy wrote Jan 11, 2013 at 8:44 AM

According to MS, running an application as another user (by using the RunAs command) is not an interactive logon; BITS will not run jobs associated with the specified user.


wrote Feb 14, 2013 at 9:11 PM

wrote Mar 12, 2015 at 12:30 PM