1

I can't believe Timer Jobs and SharePoint can be this un-predictable.

I deployed my Timer job feature solution to web application A and activated feature, it worked for 3 days in same web application without any kind of problem. Today after nothing at all has been changed other then EVENT RECEIVER failed to load a dll (dunno why tho) and it went to Initialized stage with "0%" progress.

I looked at Solution Management in central Admin and its deployed to web application A

I looked at Timer Job Definition for Web Application A and I can't find definition for Timer job, however we got around 15 Web Applications so I looked at another Web Application let say Web Application B and Timer Job Definition was there.

How strange, I don't even know what exactly to google.

Most people say clear Configuration Cache to make it work, but why would it happen at first place and its our development server I can clear configuration cache but what if it happens on Live, I can't go to Live server and gonna clear Cache whenever this timer job will hang

9
  • Was the timer job referencing the DLL at all do you know, ie was it anything to do with what this Timer job was doing? Or maybe the event receiver firing on something on the job or are they not linked at all?
    – Hugh Wood
    Commented Sep 3, 2012 at 17:26
  • they are not linked at all, dll was just for event fire that saves values to DB table, but main concern is why Timer job definition says its in a different web application :S Commented Sep 3, 2012 at 19:26
  • Is it a web application scoped timer job?
    – Hugh Wood
    Commented Sep 4, 2012 at 7:39
  • yup it is indeed Commented Sep 4, 2012 at 7:54
  • I came this morning and timer job is running successfully, no one touched server at all, except the timed operations happens at early morning, but again I am pretty sure non of operation re-configure cache. Commented Sep 4, 2012 at 8:07

1 Answer 1

1

it depends on which web application feature you activated it, if you activated it in web application B then Timer job definition will be in Web App B regardless of where it has been deployed, why ? I don't know to be honest.

4
  • let me try but how can you activate a feature that is not deployed to a specific web application Commented Sep 4, 2012 at 10:29
  • thanks lot it worked, but am still confused Commented Sep 4, 2012 at 10:34
  • glad it worked & for rest gooogle it ;) Commented Sep 4, 2012 at 10:35
  • 1
    The feature activation will decide which Web Application the Timer job is associated to because when you create your timer job using the SPJobDefinition derived class you pass in the SPWebApplication object into that constructor. See msdn.microsoft.com/en-us/library/…
    – Simon Doy
    Commented Sep 4, 2012 at 16:00

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.