I am getting a SecurityException while trying to activate a feature with a custom timer job. The error is raised from the job.Update() method call. I am running the code with Farm Admin account.
Do you have any idea?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI am getting a SecurityException while trying to activate a feature with a custom timer job. The error is raised from the job.Update() method call. I am running the code with Farm Admin account.
Do you have any idea?
Try to override the SPPersistedObject.HasAdditionalUpdateAccess() method and return true.
protected override bool HasAdditionalUpdateAccess()
{
return true;
}
This thread for you. Your application pool identity will not have the appropriate rights. This thread contains full information how to resolve this issue.