0
votes
2answers
2k views

Custom job and System.Security.SecurityException: Access Denied

I have a custom job that I'm executing from a Web Part. MySPJobDefinition myJob = new SPJobDefinition(SPContext.Current.Site.WebApplication, myParameters...); //works myJob.Execute(Guid.Empty); ...