2

I created a SharePoint Custom Timer Job in Visual Studio 2012 following the steps given in this article by Ravi Rachchh. It works fine.

However, I wanted to change the Title of the Timer Job. So I changed the below given line in the constructor.

this.Title = "MNM's Test Timer Job";

However after re-deploying and activating the Feature. The Central Admin Job Definitions page shows the old Title.

What Am I missing here?

6
  • did you retract it completey and then redeploy it? also did you recycle the timer services on server?
    – Waqas Sarwar MVP
    Commented May 27, 2015 at 14:39
  • Yes. We did retract and after re-deploying we also performed the 'net stop sptimerv4' & 'net start sptimerv4'.
    – Muhammedh
    Commented May 27, 2015 at 14:42
  • did you change in all constructors? step 4 of this blog codeproject.com/Tips/634208/…
    – Waqas Sarwar MVP
    Commented May 27, 2015 at 14:55
  • Yes we did! Did a search on the entire VS project for the old title. does not exist.
    – Muhammedh
    Commented May 27, 2015 at 14:59
  • how many server in the farm? i would say completely remove it from server, recycle timer services(on all server) and then re-add and redeploy the new solution.
    – Waqas Sarwar MVP
    Commented May 27, 2015 at 15:01

1 Answer 1

2

You can use PowerShell for changing Title

$t = get-sptimerjob | where { $_.Title -eq "MNM's Test Timer Job" }
$t.Title = "New MNM's Test Timer Job"
$t.Update()
5
  • Worked perfectly! Jazakallahu Khairan :)! Any idea why the code doesn't update the title?
    – Muhammedh
    Commented May 27, 2015 at 14:56
  • I have observed this behavior, mainly with farm having multiple servers. Not sure exact cause. Commented May 27, 2015 at 14:57
  • we have only one server in the farm.
    – Muhammedh
    Commented May 27, 2015 at 15:01
  • Ok in that case try restarting OWSTimer service Commented May 27, 2015 at 15:02
  • I did try the 'net stop sptimerv4' & 'net start sptimerv4' commands. Still no luck!
    – Muhammedh
    Commented May 28, 2015 at 5:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.