SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created & deployed a custom Jobdefinition via feature activation. During feature deactivation I use...

 Foreach(SPJobDefinition job in WebApp.JobDefinitions){

I then checked with PoweShell and the definition was gone. I retract my solution. Then in PowerspShell

 Restart-service sptimerv4
 Restart-service sptimerv4

Re-deploy my solution/activate feature. And again in PowerShell

  $tj = get-sptimerjob "myJobName"
  >>Error no method found

Then I deployed the same build for the first time on another server & it worked great. How do I get the timerjob to properly update on the first server?

share|improve this question

When it comes to custom Timer jobs deployment, I always retract and remove deployed timer job first. Then restart Windows Timer service from services.msc and then add solution again to solution store using STSADM followed by STSADM deployment statement.

Now I wait for a while like few minutes and then run this command on all of WFEs to make sure solution is deployed,

stsadm -o execadmsvcjobs 


Once I am sure that solution is deployed, I activate the feature. I am not sure if it's best practice or not but it worked perfectly for me.

Back in days I used to simply use STSADM upgrade command but it didn't used to work efficiently for me and solution wasn't actually getting updated for some reason.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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