0

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.

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

1 Answer 1

0

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

7
  • 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. Commented Jun 11, 2014 at 14:44
  • Can you share your feature activation code? Commented 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(); } Commented Jun 11, 2014 at 15:04
  • public SPTimerJob(string jobName, SPWebApplication webapp) : base(jobName, webapp, null, SPJobLockType.Job) { this.Title = "SPTimer Job"; } Commented 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 .... Commented Jun 12, 2014 at 7:00

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.