Question

I have a custom timer job that inserts into 3 lists. I've been following this tutorial and it was working perfectly fine, I was able to debug and deploy the timer without any problems. Now a few weeks back, our development server crashed but fortunately, I was able to retrieve our content databases. When I deployed and tested our custom timer jobs, I noticed that it doesn't execute anymore. It just goes through the base constructor but never to the Execute function. I have already done the following:

  • restart the SharePoint Timer Service, IIS and the server itself
  • increased the version of the timer code
  • cleared the config cache
  • create a new and simple custom timer job
  • ran the SharePoint Products Configuration

But none of them works. Any help is appreciated. Thanks!

Was it helpful?

Solution

I finally figured out what was wrong. It was our old web application, maybe it somehow got damaged during the server crash. So I created a new web application and tested the timer there. It worked fine. Hope this can help somebody out there.

OTHER TIPS

This is a very silly alternative but it has worked for me many times when I have faced a similar situation. Create a new timer job with a new name copying all the logic from this timer job and deploy it. Most probably it will work.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top