I created a timer job which will send a mail to all the user.It was working fine in dev server.So ,I change the "SITE URL" in SOLUTION properties to prod server url(http://*_prod) and added solution by power shell and deployed it in prod using CA.It deployed with no issue but feature was not activated by default.

I tried to activate feature manually from "Site setting -- > site collection feature" but I received error saying "Unexpected error occurred".

I have "full control" on web application and scope of timer job is "Site".

Please guide me to move forward.

  • 1
    can you check the ULS logs for more info about the error, their are many reasons for this.
    – Waqas Sarwar MVP
    Jun 11, 2014 at 12:46
  • @WaqasSarwarMCSE error :access denied Jun 12, 2014 at 7:01

1 Answer 1


Timer jobs are deployed at Webapplication level. Try changing the scope to "Web Applciation".

  • I will do and let you know.But my question is same configuration ran in dev server were I created the timer job.The only thing I changed is "Site URL" in solution properties. Jun 11, 2014 at 14:44
  • Can you share your feature activation code?
    – Aanchal
    Jun 11, 2014 at 14:49
  • public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPSite site = properties.Feature.Parent as SPSite; CreateJob(site); // Create new Job } private static void CreateJob(SPSite site) { SPTimerJob job = new SPTimerJob(JobName, site.WebApplication); job.Update(); } Jun 11, 2014 at 15:04
  • public SPTimerJob(string jobName, SPWebApplication webapp) : base(jobName, webapp, null, SPJobLockType.Job) { this.Title = "SPTimer Job"; } Jun 11, 2014 at 15:06
  • I tried by changing the scope to Web application but issue remains same and I looked into logs it says "access denied".Suggest me on this .... Jun 12, 2014 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.