This usually happens when you add two or more timer jobs in single solution. This one tested me a lot. This issue usually comes when we go for two features for two timer jobs.
Guess what here is the place we do mistake usually.
When we copy paste the code for feature receiver from one feature to another one we just copy and paste it where we don't much care about any changes in that code. because it is already working fine. Of course its working fine but still it needs a little change.
Feature 1:
Feature Activated:
TestJob1 listLoggerJob = new TestJob1 (List_JOB_NAME, site.WebApplication);
Feature 2:
Feature Activated:
TestJob2 listLoggerJob = new TestJob2 (List_JOB_NAME, site.WebApplication);
So guys please don't forget to change the class name where you create your timer job. Don't just copy and paste, just review it at-least once. It took me some time to find this silly mistake.
thank you
Guess what here is the place we do mistake usually.
When we copy paste the code for feature receiver from one feature to another one we just copy and paste it where we don't much care about any changes in that code. because it is already working fine. Of course its working fine but still it needs a little change.
Feature 1:
Feature Activated:
TestJob1 listLoggerJob = new TestJob1 (List_JOB_NAME, site.WebApplication);
Feature 2:
Feature Activated:
TestJob2 listLoggerJob = new TestJob2 (List_JOB_NAME, site.WebApplication);
So guys please don't forget to change the class name where you create your timer job. Don't just copy and paste, just review it at-least once. It took me some time to find this silly mistake.
thank you
No comments:
Post a Comment