Start workflow in code - access denied

Im trying to start list workflow (sp 2013)  from MVC app.

the mvc app (win auth enabled) is running by a user that is site owner.

i always get ASP.NET access denied

var workflowServiceManager = new WorkflowServicesManager(web);
var workflowSubscriptionService = workflowServiceManager.GetWorkflowSubscriptionService();
SPList oList = web.Lists["Employee"];
SPListItem item = oList.GetItemById(557);

//access denied on this line

//------------------------------------

 var subscriptions = workflowSubscriptionService.EnumerateSubscriptionsByList(oList.ID);

thanks

January 22nd, 2014 4:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics