Tip – Timer Job Constructor in SharePoint
Tip – Timer Job Constructor
Default constructor in timer job class is mandatory else you end up with the error “TimerJobxxx cannot be deserialized because it does not have a public default constructor.” when activating the feature that installs the job. You should have constructor like below code
public TimerJob(SPWebApplication webApp): base("TimerJob", webApp, null, SPJobLockType.ContentDatabase) { this.Title = "TimerJob"; }
November 2, 2013
В·
Adi В·
No Comments
Tags: SharePoint, SharePoint 2010, timerjob В· Posted in: C#, Sharepoint 2010, Tips and Tricks
Leave a Reply