Keep it Simple

// practice, the distance between dream and achievement

Tag: Timer Job

Working with SharePoint Timer Service config (OWSTIMER.EXE.CONFIG)

There was a requirement of updating our timer job config with the below values in app settings section.

Here is how I did it.

Where is the SharePoint Timer Service config (OWSTIMER.EXE.CONFIG) file

The SharePoint (on premise) job timer config file is located on the following local path:

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\BIN\OWSTIMER.EXE.CONFIG

Where the ..\15\.. can be 14,15, 16 or else depending on the SharePoint version.

Access Web Application Configuration values in Timer Job – SharePoint

Sometimes we may want to access SharePoint Web Application configuration (web.config) file from SharePoint custom Timer Job. But in case of SharePoint Timer Job it runs under OWSTIMER.EXE and Web Application runs under W3WP.EXE process, the configuration associated with the W3WP.EXE cannot be access directly or straight forward OWSTIMER.EXE.

Continue reading

SharePoint Timer Job that runs on a server in the Multiserver farm

There are many articles you will find on internet about Timer Jobs in SharePoint which is based on a server but not on service. Timer job based on a server having a major issue. i.e- Job will not work if that server is crashed.

To create timer job based on service or say service application, we will have to do few things, this are below

  • Create custom service and add to the local farm
  • Create service instance based on above custom service and add this to all the servers in the farm
  • Create timer job
  • Associate timer job to service

Continue reading

© 2017 Keep it Simple

Theme by Anders NorenUp ↑