.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Custom Timer Job does not really work

Posted By:      Posted Date: October 07, 2010    Points: 0   Category :SharePoint


I made a custom timer job to export some date in excel files. It works really good on my developmet computer.

I installed the solution on the customer’s server and activated the features. The timer job was well created. After that, I would test the job and I pushed the button “execute now” in Central Administration. After a few seconds I found a new entry in my Job History with the successfully finished job.


Job Title

View Complete Post

More Related Resource Links

Custom SharePoint Timer Job doesn't run after changing code and restart timer services.

Hi We are facing an issue that our custom SharePonit Timer Job doesn't run after a changing the code. First, we developed and deployed a timer job. It worked fine for a few days, then we detected a memory leak and killed the OWSTIMER.EXE. (Maybe we should uninstall the timer job and restart the timer services nicely). We fixed the problem, redeployed the fix as a feature (assemblies are re-GACed ...) to our small SharePoint farm (one web server, one services server), restarted the SharePonit Timer Services. Now we can see the time job in Timer Job Definition in Central Admin but the job never runs (Since it doesn't run, the timer job status page doesn't have any info about it). We tried the same process in a dev environment with SharePoint signle box installation. The timer job just works fine. I did some search on Internet and followed some instruction to clear the cache from "C:\ProgramData\Microsoft\SharePoint\Config\1d50d73c-9bf1-4444-85a9-910ed050d1bf" by 1. Remove all the xml2. Clear the cache.ini with "1".3. restart the timer services. It still doesn't fix the problem.Please advise what else I can do. I even rename the timer job and redeploy it. It doesn't help. I checked the even log and SharePoing log and couldn't see anything wrong. Our OS is W2K8.         public override void FeatureActivated(SPFeatureReceiverProperties properties)        { 

custom timer job Access denied sharepoint 2010

Hi, I have a question regarding to custom timer job will be happy if you could help us. The problem is that - owstimer.exe running the timer job crashes. - Question why? Launch debugg in the feature - running the timer job is falling on taskJob.Update (); writes SecurityException  I developed the Job TIMER on moss2007 that everything worked, Now we turned from 2007 to sharepoint 2010 and Job TIMER does not work. I tried to note all of the code is inside the function Execute in  job timer might have something to code blocks. But it also did not help. Eventvwr he writes in the following error: The description for Event ID 0 from source Application can not be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: Custom Timer Jobs: func FeatureActivated Access denied. the message resource is present but the message is not found in the string / message table what the solution to that-timer job that will work? Thank you Moshes

How can I get search to work for a Custom Document Library with a few third-party field types?

Hi, Using WSS 3.0 with SQL Server 2008 for Workgroups I have created a Custom Document Library (2,462 files - copied from folder into Explorer view and then renamed using Batch Update in web services i.e. "BaseName" field) - basically it uses three fields that are of "Filtered Lookup" (a field type from a third party). The document library is included in the search (i.e. Advanced Settings), but it displays none of the files - bascially not included in search at all with all testing I have done. I created a new Document Library called "Test" and uploaded a document and it is included in the search. Is there any way I can debug this. Is there a log file? Is there something in the Search Database that might help? Your help would be really appreciated as this is my last issue - and its soooo important to the deliverable. Thanks. John.

Custom field type - set value doesn't work when field is hidden

Hi, I have a simple custom field type which gets a value from the Property Bag and sets that value to a label. This works fine as long as the field is set to Optional (the field is a site column and is part of a site content type), but if I set it to Hidden, the value doesn't get set. public override void UpdateFieldValueInItem()         {             this.EnsureChildControls();               if (this.ControlMode == SPControlMode.New)             {                 this.Value = GetChosenConsole();             }         }   Does anyone know why this is and what I need to do in order for it to work even though it's hidden? Thanks!

Deploying TFS2010 work item custom controls in Sharepoint portal

HI I have created work item custom controls for Web Access. I have placed the Dlls in Team Foundation Server 2010 -> Application Tier -> WebAccess -> Web -> WorkItemTracking -> Custom Controls. now, i am able to view the custom controls if i access through Team Web Access 2010. But i am unable to view the custom control when i acces through sharepoint 2007 portal. I have copied the dll and wicc file to following location C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\Tswa\CustomControls but i got the following error system.IO.FileLoadException: Could not load file or assembly. Please share me if the deployment procedure of custom controls in Sharepoint are different. Regards, Sekhar

Custom Web Part doesn't work with in anonymous access

Hi there, I have a custom webpart in a farm solution deployed to my site. Anonymous users should be able to view the site, however they can't because they are required to login due to the custom web part. If i remove the webpart from the page, anonymous users can view the site perfectly without the need to login. There is nothing really special about the webpart. It's a visual web part which uses the site and it's web data to display a sort of menu. Any idea? Thx in advance! Brecht

unable to register a custom timer job in Moss


Hi all,


I was unable to register a custom timer job in Moss 2007 using both the web interface via feature activation event as well as through code by taking the instance of the timer job class in a custom web part where i manage the custom timer jobs.


The same above case was working fine in a different environment.Could you please help by listing out the reasons/solutions/work around.


This is very critical and urgent as i was deploying the same in production.Thanks in advance.




Thanks keshav,Share point Developer

How to schedule the custom timer job two times a week to run in MOSS




I have scheduled a custom timer job to run for weekly two times using the spschedule. the string used in the feature event was

"weekly between tue 23:00:00 and thu 23:00:00"

But the problem is i have the job is running only once with the above schedule.How can i run the job twice a week on specific days.


Please share your ideas/solutions to run the custom timer job in  MOSS as per the above schedule.






Thanks keshav,Share point Developer

Custom Timer Jobs in Farm Features but not Job Definitions.

I have 2 custom jobs activated in MOSS 2007. They both show up in CA under Manage Farm Features but they do not show up in Timer Job Definitions.  One of the jobs are the MSDN SharePoint Warmup Job and the other is a custom one I wrote. I thought that my code was wrong but I downloaded the warmup job and installed/activated it. and it is the same way. Any Suggestions?

Custom Timer Job not working on multi-server farm


I created a timer job based on Andrew Connell's tutorial. I ran this timer job on my development server, and it works perfectly. When I deployed it to our testing server, which is a multi-server farm with one wfe, it doesn't seem to work.

Here is what I have tried so far to get the timer job to work on our test server, based on other posts in this forum, and other tutorials I read on the web.

  • I made sure to stop and restart the timer job every time I change the solution
  • I have logged-in with the farm account on my test server to deploy and activate the feature
  • I have checked the timer job status in Central Admin, it says the timer job ran on the wfe with a status of Succeeded, and a progress of 100%
  • I have checked the SharePoint logs, I see "Start invoke timer job" with my timer job name, and usually the next line or two reads "End invoke timer job"
  • In the execute method, I am now telling it to write to the Sharepoint Logs that it has started, but this line never appears in the logs

I assume that since this is the first time writing a timer job, I am obviously missing something that my solution needs to run on a multi-server farm. I even played with the SPJobLockType, but no luck, it is currently set to ContentDatabase. Do I need to add code that tells my timer jo

WPF Custom Control template doesn't work



I've created a WPF custom control that goes in a DLL and I'm trying to use the control in another project.  Everything works fine except for the part of getting the control template to work. I should get an Orange background as defined below but the control just shows empty in the XAML editor and in runtime.

The code is as follows:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace MyCustomControl
    public class CustomCtrl : System.Windows.Controls.Control
        public static readonly System.Windows.DependencyProperty ValueProperty;
        public string Value
            get { return (string)GetValue(CustomCtrl.ValueProperty); }
            set { SetValue(CustomCtrl.ValueProperty, value); }

        static CustomCtrl()

How does System.Threading.Timer work (implementation details)


I've read a bunch of articles on the different .NET timers and still don't have a good understanding how the System.Threading.Timer class works.  My concern is whether I'm creating a bunch of timer threads in the thread pool.  I have this concern because one article said something about System.Threading.Timer using a thread pool thread to WAIT on the timer.  I'm hoping that each System.Threading.Timer class I create doesn't create a thread pool timer thread waiting on my timer interval.  I assume not.  Which is why I would like to know how it actually works.

For instance, let's say I create 50 System.Threading.Timer objects with a 5 second interval.  What happens?  Is there some interop call into unmanaged code which creates some timer resources and somehow signals some managed code when a timer has elapsed at which point the managed code queues a work item to the thread pool?  So in my example, at roughly the same point in time .NET would queue 50 work items to the thread pool?



Can I create a timer job to run a custom code everyday?


Hello guys,

I have to run some calculations at sometime everyday through code in sharepoint. So How can i make sure that this code runs at particular time to perform those calculations.

If you guys know anything, let me know.


Custom Timer Job - Not running?


I have a Timer Job that was running fine in our production environment.  I noticed some possible memory leaks, so I added some code to do some more diagnostics work and tried to delete and re-create the timer job.  I did this after copying the new DLLs to the GAC and resetting IIS.

However, now the Timer Job won't execute.  It is scheduled to run every 15 minutes.  I see nothing in the logs for the job and it doesn't show up in the Timer Job Status list.  Is there a way to manually execute the job?  What could be causing this issue?

Problem in Sharepoint Custom Timer job


I have created one timer job using the steps metioned in this link http://msdn.microsoft.com/en-us/library/cc406686.aspx ".
This job is working fine. But i want to modify this timer job. so that i can update Tasks list column after some time interval.

I added my custom logic in the Execute method, but it is not working. In my custom logic i am getting list items of Tasks List and i am updating it.

Does anyone know where is the problem?

Also if you have any other examples of timer job. That would be greatful.

Thanks in advance.

Custom Timer Job - Running on wrong server?


I have a WFE + Index Server farm setup.  I deployed a custom timer job on the WFE, and it's only executing on the Index server.  How do I force a job to run on a specific server?

Also, it's status is 'Failed', but there's nothing in the event log?

Does Useful Sharepoint Designer Custom Workflow Activities work across servers - pls HELP


Not usre if this is the right place to post this but sure many guys must have used this
I have a siteA at



and Site B at



when i try and use the
Copy List Item Extended Activity to copy the list items across i keep getting error:

System.IO.FileNotFoundException: The Web application at http://myserverA/sites/pop/lists/mylistname could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

My AAM looks like this:

Internal URL                  Zone        Plublic URL for Zone

http://myserverA:8080    Default     http://myserverA:8080

http://myserverA.domainname:8080  Default  http://myserverA.domainname:8080

http://myserverA.domainname:2020 Default     http://myserverA.domainname:2020  -- this is been extended for FBA

Any ideas what i ne

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend