cant find webapplication scoped feature anywhere
-
09-12-2019 - |
Question
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;
}
Solution
Your scope for feature is at "Web Application" level feature and therefore be visible at
Central Administration -> Application Management -> Manage Web Application Features
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