I Have created a timerjob but when I try to update my timer job I get access denied. I am using a user that has WSS_Content_Application_Pools membership.
Then I tried to activate the timer job with stsadm because it has worked to update the timer job before. But now I can't activate my feature because I get access denied to the path of my feature.
What else can I do?
SPUserToken userToken = tempWeb.AllUsers["domain/Administrator"].UserToken;SPUserToken userToken = tempWeb.AllUsers["posten/Administrator"].UserToken;
using (SPSite site = new SPSite(siteStr, userToken))
//// make sure the job isn't already registered
foreach (SPJobDefinition job in site.WebApplication.JobDefinitions)
View Complete Post