SharePoint custom timer job running multiple times
Recently, I have come across with a problem where users are receiving 18 duplicate notification mails. We surprised that why the timer job sending 18 duplicate mails. Then we have checked the job history in QA and noticed that my job is executing 18 times daily. Again we went in to a big confusion. That is, why the job is executing multiple times and also why 18 times, why not less or more :) After digging some time we found that my web application has 18 content databases and our job running for each and every content DB. Not only my job, the rest of the jobs also running for each and every content DB. I think the rest of the jobs are handled some thing at code level due to this they did not come across with similar issue. Initially we thought there is some problem in QA server but later we found that it is our code problem. When we create a job we will add following constructors in our class file. public...