This project has moved. For the latest updates, please go here.

Access denied when scheduling a task from windows phone application

Sep 10, 2012 at 7:55 PM
Edited Sep 10, 2012 at 7:56 PM

Hi All,

                  I am trying to schedule a job from a windows phone app. The flow is :


WP7-> WCF -> scheduletask

When i run the task from the wcf test stub (calling it from a page) the job is scheduled fine how ever if i make a call to my wcf service from a WP7 project i am getting a error as below :  (i am running the task as an administrator in both cases)

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

Please advise.






Sep 11, 2012 at 12:17 AM

The TaskService object, by default, uses impersonation to authorize access. If the WP7 device is not providing a valid Windows session with credentials, you will need to make sure that ASP.NET is connecting to TaskService using authorized credentials. There are some other discussions for this project around ASP.NET that may be worth looking at.

Sep 11, 2012 at 6:53 AM
Edited Sep 11, 2012 at 10:53 AM