I have a Sharepoint Foundation 2010 installation. I needed to create a Timer Job and found a few articles on how to create it. I used Visual Studio 2010 to create an empty sharepoint project and created a timer class (for the timer logic) and a feature to define the event receiver class. When I created the feature, I needed to use the "Site" scope. In Visual Studio, I was able to right-click on the project and click the "Deploy" option. This appeared successfully retract the solution (if it existed), added the solution, deloyed it, and activated the feature with Sharepoint. If I went to the Sharepoint Central Administration --> Monitoring --> Review job definitions and was able to see the title of my timer job. The job was triggered as scheduled and all seemed fine. I don't have a Visual Studio installation on my production server so I wanted to find a way to "install" my timer job manually. I found a nice article (http://technet.microsoft.com/en-us/library/cc262995(v=office.14).aspx) that showed how to do this. I first wanted to try these steps with the Sharepoint Foundation Server that i was deploying to via Visual Studio. The steps I took were as follows:
1) I launched the Sharepoint Management Shell (run as administrator).
2) I ran the command: Add-SPSolution -LiteralPath [path to my .wsp file]. No errors.
3) I went to Central Administration --> System Settings --> Manage farm solutions and saw an entry for my solution.
4) I clicked on the link and clicked the Deploy Solution link. The "Deploy To?" section simply said that it would be deployed globally. I clicked the OK button.
5) When I clicked on the solution name again, the status indicated that it was deployed successfully and listed the site name.
I thought all must be well until I went to the Central Administration --> Monitoring --> Review job definitions page. My timer job was NOT listed like it was when I did the deployment via Visual Studio. I have no clue as to why it is not listed. It also didn't run as scheduled, which I figured would be the case.
Does anyone have any clue as to what I missed?
Thansk - Peter