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

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

Custom Timer Job not working on multi-server farm

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :SharePoint

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

View Complete Post

More Related Resource Links

Does the "F5 experience" work with a multi-server 2010 farm?

I have a multi-server SharePoint 2010 farm I'm attempting to develop against.  I have Visual Studio 2010 installed on one of the servers.  When I create a default Visual Web Part project and hit F5, I get an error such as the following:   "Error 1 Error occurred in deployment step 'Activate Features': Feature with Id '06789185-b4a0-41d8-a535-1d8602a05b97' is not installed in this farm, and cannot be added to this scope."   After a bit of searching, I came across a thread that suggested multi-server farms were not supported by Visual Studio 2010 in regards to the F5 experience of being able to deploy, activate, and debug a feature.  Can anyone shed light on this for me?Chris Stewart

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 - 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?

setup multi-server server farm


Currently the company has three locations, US, UK and Japan. We need to setup a SharePoint 2010 Server farm. Hope someone can give me some suggestions,

1. Should we install SPS server farm in one location or should we install it cross three locations?
For example, install all WFE servers and all APP servers and clustered databases in US location only. And all users from US, UK, and Japan access this server farm in US. How about the performance of those users outside of US?
2. Should we install SPS server farm across multiple locations? (US, UK, and Japan)
3. How the language pack will be installed?

Thanks in advance, 

Custom Timer Job deploying at Farm level



I am trying to develop a timer job that is deployed at Farm Level. can anyone point me to an example of how to deploy it?

(I am looking for code in FeatureActivated and deactivated event)



Server side validation of Fileupload control not working



I've tried this method in my code behind to try and validate that the Fileupload control has a file or not. I get the error message the the event "Server Validate" cannot be found. Can anyone tell why? Thanks.

Public Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate

' Get file name

        Dim uploadAvatar As FileUpload = DirectCast(AdvertisementForm.FindControl("uploadAvatar"), FileUpload)

        Dim UploadFileName As String = uploadAvatar.PostedFile.FileName

        If UploadFileName = "" Then
            ' There is no file selected
            args.IsValid = False
            Dim Extension As String = UploadFileName.Substring(UploadFileName.L

update/delete not working on server only


my aspx page works in VWD, and everything works on the server EXCEPT update and delete sql functions. any ideas?


video tutorial link for composite and rendered custom server control


hii all

i am new to technology so go easy on this post

according to what i read from web there are 3 type of custom server controls

1 superclass

2 composite

3 rendered

i found video tutorial for superclass custom server control but couldnt find video tutials for other 2.

please forward me link for composite and rendered custom server controls video tutorial  

image inside custom server control



I want to use an image inside a Custom Web server control ! 

Do I need to use Web.resources ? if so , how to do ?

Custom Server Control Property not maintaining state


I have created a server control consisting of a TextArea and a div under it.  My goal is to create my own asp:TextArea type control.  the div is for a Character count of the text area and seems to work ok but i added a CharacterCountVisible property to the control that is always returning true.  See Proptery definition below


<Bindable(False), Category("Appearance"), DefaultValue("True"), Localizable(True)> Property CharacterCountVisible() As Boolean
        Return _CountBoxVisible
    End Get
    Set(ByVal value As Boolean)
        _CountBoxVisible = value
    End Set
End Property

Note the _CountBoxVisible variable is define inside the class as :

Dim _CountBoxVisible as Boolean = True

What I am trying to do is give the user/coder the option to show/utilize the char count feature.  Can make it disappear with textarea1.CharacterCountVisible = False but setting it to true will not make it display.


What am i missing





Not working on Windows Server 2008




I had the CSS friendly adapters working great on our old server (windows server 2003 - 32bit) and now we have moved to a 64 bit environment and now I can not get the CSS friendly adapters to work.

We are using SharePoint 2007.

Is there another work thru for 64bit environment.

I notice windows server 2008 has a directory  C:\Windows\Microsoft.NET\Framework64 would I be using the browser file in this directory???

Please help!

SQL Server 2005: Jazz Up Your Data Using Custom Report Items In SQL Server Reporting Services


Custom report items in SQL Server 2005 Reporting Services address your needs for custom reports without the pain of doing it from scratch.

Teo Lachev

MSDN Magazine October 2006

SQL Server: Display Your Data Your Way with Custom Renderers for Reporting Services


SQL Server 2005 Reporting Servicesis a great tool that offers a centralized approach to storing and rendering reports. It also lets users view and download reports without installing additional software. Plus, reports can be saved in any number of different formats using custom report renderers. In this article, the author will develop one such report renderer that outputs HTML reports, but the skills you'll learn can easily be used to create a renderer for Microsoft Word documents or any other format of your choosing.

James Yip

MSDN Magazine February 2005

Error Handling: Throwing Custom Exception Types from a Managed COM+ Server Application


Exception handling semantics in .NET are based on type, so you can create custom exceptions that have their own properties and methods. In .NET, exceptions are first-class citizens, and since they're the built-in error handling mechanism, all .NET-compliant languages must support exceptions. In addition, COM+ services are available to .NET code as Enterprise Services, so you can leverage exceptions in your Enterprise Services design.In this article the author describes custom exceptions, throwing exceptions across COM interop boundaries, and working with Enterprise Services.

Bob DeRemer

MSDN Magazine March 2004

Search Server Gatherer - Custom hierarchical protocol handler ISearchProtocol for MOSS 2010



Search server gatherer calls CloseAccessor() and shutdown() on ISearchProtocol after GetChunk() even if the FILTER_E_END_OF_CHUNKS is not returned. After calling shutdown() it stops calling the createaccessor() with new URL. I want to create a hierarchical indexing but I am not gatherer is not suporting this. The same piece of code is working fine in MOSS 2007, I am facing this issue in MOSS 2010 only. Is there anything changed in MOSS 2010 which is creating this issue?



Office Sharepoint Server Search not working but Windows Server Search is.

I am having an annoying Issue with the Sharepoint 2007 Enterprise search functionality. I cannot get the Search Centre to work, the out of the box webparts crash the page except the Searchbox when the others are closed. The event viewer shows up numerous Errors (Office Sharepoint Server - EventID 7080) returns with and the same when trying to add a search related web part (e.g. core.results, federated etc). EventID 6398 - Timer is a regular as is 7080. Details below.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified).

Remote connections are connected, I am not 100% on the Instance name, (how would I go about checking this?)

Also I cannot access the link to SharedServices1 - Open Shared Services Admin site (not clickable), guess it's permissions but I seem to have full site permissions, I think I need SSP-Admin to make more edits to the Search, maybe this is related :s

Both Search Servers are runnig, I have tried everything I can think of to fix this and allow the Search Centre to work.

I am running Sharepoint 2007 on SQL Server 2008.

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