Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I developed a Custom Timer Job Feature using WSP Builder but for some reason I am not able to find it so that I can activate it.

I know I can activate it using stsadm but why cant I find it in Site Features or Site Collection Features even tho I tried to look into Central admin but couldn't find anything meaningful to solve this issue.

here's Feature.xml

<?xml version="1.0" encoding="utf-8"?>
<Feature  Id="GUID"
          Title="anotherTimerJob"
          Description="Description for anotherTimerJob"
          Version="1.0.0.0"
          Hidden="FALSE"
          Scope="WebApplication"
          DefaultResourceFile="core"
          ReceiverAssembly="anotherTimerJob, Version=1.0.0.0, Culture=neutral, PublicKeyToken=*************"
          ReceiverClass="anotherTimerJob.anotherTimerJobReceiver"
          xmlns="http://schemas.microsoft.com/sharepoint/">
</Feature>

Edited

If I try this STSADM it says

Object reference not set to an instance of an object.

stsadm -o activatefeature -id GUIDID -url https://abc303.development.com/portal

Edited 2

I was calling Wrong Constructor in class(extended to SPJobDefinition)

I was calling this Method in my receiver class

   public anotherTimerJob()
        : base()
    { 
    }

when I was suppose to call this one

public anotherTimerJob(SPWebApplication webApp)
    : base(TIMERJOB_NAME, webApp, null, SPJobLockType.ContentDatabase)
{ 
    this.Title = TIMERJOB_NAME; 
}
share|improve this question
    
I did deployed it successfully using WSP Builder –  Muhammad Raja Jul 27 '12 at 8:32

1 Answer 1

up vote 3 down vote accepted

Your scope for feature is at "Web Application" level feature and therefore be visible at

Central Administration -> Application Management -> Manage Web Application Features

See technet

Edited

You can activate Web Application Feature by giving it's url.

stsadm -o activatefeature -id GUIDID -url https://abc303.development.com/

If you're facing some problem during Feature Activation then you can debug it by attaching debugger to the "w3p.exe" process in the Visual Studio. In such case, you manually have to activate feature from GUI (Central Admin), not via stsadm.

Hope it helps

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.