Tag Info

New answers tagged

1

I guess your mistake is that SPSite is not the properties.Feature.Parent when your Feature has Scope Webapplication. Try this instead: SPWebApplication webApp = (SPWebApplication)properties.Feature.Parent; foreach (SPJobDefinition job in webApp.JobDefinitions){ if (job.Name == List_JOB_NAME) job.Delete(); }


0

I know this is a stupid answer, but I had this exact problem once before and I restarted the SharePoint Timer Service and reran the job, and the problem went away.



Top 50 recent answers are included