.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 SharePoint Timer Job doesn't run after changing code and restart timer services.

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :SharePoint
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)        { 

View Complete Post

More Related Resource Links

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

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.


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 Sharepoint 2007 Timer Job - Object Reference Not set to an instance



I am creating a Custom Sharpeoint timer job (in 2007) and i used Andrew Connel's blog and his code to create it. But for some reason I always get this error. I commeted out all my code inside execute method but still its the same. I am deploying my timer using Solution Package installation and activated the Feature.

Here is the error: The Execute method of job definition CustomSPJobDefinition.CustomSPService (ID 88a735f1-bbb7-4fea-932f-690dfc25a212) threw an exception. More information is included below.

Object reference not set to an instance of an object.



Guid targetInstanceId = new Guid("EAC61BD1-0C2A-45F6-9148-3A8BC9C93339"

Resume SharePoint Services Web Application and returns code 1387 error


Hello everyone! Newbie here. I would like to ask how to start the SharePoint Services Web Application on (WSS3.0,internal database, stanalone users) without getting error 1387 ?

I would love to provide more information regarding this issue but what I got is error 1387 displayed in the browser.

I look forward to seeing you guys feedback from your expertise angle.



Creating Custom Business Connectivity Services Connectors Using SharePoint Server 2010

Learn how to create a Business Connectivity Services (BCS) custom connector to integrate data sources into SharePoint Server 2010.

Timer job intiation error: SharePoint cannot deserialize an object of type

Hi All, when i run a timer job (One-Time timer) it has added it to Timer Job definitions in the Central Administration. I have checked the Log file in 12 hive and found the following error..... "SharePoint cannot deserialize an object of type xyz.xyzJob, xyzTimer, Version=, Culture=neutral, PublicKeyToken=<token> on this machine. This typically occurs because the assembly containing this type is not installed on this machine. In this case, this message can be safely ignored. Otherwise, the assembly needs to be installed on this machine in a location that can be discovered by the .NET Framework." The above error says that the assembly is not added.... but it has been already added to the GAC. Can anyone guide me about the issue and how to resolve that........?

"SharePoint 2010 Timer" service needs to be restarted everyday!

Here's my problem, Every morning I log on to my SharePoint 2010 server to find out that the "SharePoint 2010 Timer" has stopped! We have seen the problem on two environments (development & production).  When trying to restart the service manualy I get an error 1069 "The service did not start due to logon problems"!  I manage to restart the service by reentering the password on the service "Log On" tab or by reentering the password in "Central Administration" - "Managed Accounts". Looks like something is changing the password that the service will use to log with the service account.  Please note that the account password never changed)!  Any ideas?  Thanks, fcorbeil

Changing a current SQL 2008 Express Sharepoint instance to incl. Reporting services

I have a current instance of SQL 2008 Express that was created with a Sharepoint installation. Currently, that is the only purpose of the instance. We don't have management studio installed but from what we can tell by searching help screens is that instance is on SP 1 (10.1.2531.0) with Database Engine Services and SQL Server Replication. We need to now add Reporting Services. If we go to the Installation Tools to Add/Change the current instance, it asks for the SQL media which was from the original Sharepoint install. I have downloaded SQL 2008 Express with Advanced Tools but not SP 1. I've seen some threads where this wasn't a direct install. Ideally, I'd like to be able to change the current instance to add Reporting Services. When the wizard prompts for the media, will I be able to now point to the downloaed SQL Express w/ Adv. Tools even if it's not SP1? Thanks for your help. Tracy

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

SharePoint 2010 Timer Service keep failing


Hi everybody,


I am trying to set up SharePoint 2010 on small farm environment. 1 db server, 1 domain controller and 1 SharePoint server - where all services should run.

It was installed and working, until I tried to configure user profile synchronization service. I used least privileged account model, following in particular this article http://www.harbar.net/articles/sp2010ups.aspx

As you know, the configuration is quite complicated and require a lot of tuning on accounts rights.


I apparently mess something up very, very badly because since then SharePoint Timer Service keep failling every 2 or so minutes.

It all started at 6 am this morning when the service was recycled.


System Event viewer is flooded a loop of 4 events regarding the timer service:

  • Timer service entered the running state.
2.30 minutes latter:
  • Timer service entered the stopped state
  • Timer service terminated with service-specific error %%-2147467259
  • Timer service terminated unexpectedly.  It has done this 2 time(s).  The following corrective action will be taken in 30000 milliseconds: Restart the service
and starting again after 30 seconds


for you information, here are the exact events:

Log Name:   System

create a custom "newform.aspx" for document library using sharepoint designer and web services


Hi All,

I need to change the look and feel of "NewForm.aspx" for my Sharepoint 2007 Document Library. But the constraints are

1. I cant use C# coding. No Visual Studio.

2. Not allowed change anything in the farm level. e.g. cant install features/webparts fo this.

3. Can only use JavaScript, JQuerry and Sharepoint Designer 2007.

I came across some suggestions that we can create a custom page in Javascript/JQuery. Which will take all input data and insert new items in list/doc library using some XML services.

Please help me, I dont know if this is really possible. Let me know if any alternative is possible.

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

Using custom code on report services to check if directory does exist or not (need help)


I am trying to check if a directory does exist.  I have used the vb.net to create a very small function and embedded into the "Custom code:" section of Report Properties.  It’s output is a return of Y or N (string) or 1 or 0 (Integer) if directory exist or not. 

Here is the code which returns a String

    Function ifDirExist(ByVal mypath As String) As String

        Dim flag As String

        If Not System.IO.Directory.Exists(mypath) Then

            flag = "N"

Custom Timer Job does not really work



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

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