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 have created a timer job that works correctly when deploying by right clicking the project and hitting deploy in Visual Studio.

However, if I deploy the solution to the same server with a WSP file, I get an error when activating the feature at the site collection level. Similarly, if I deploy through VS2010 directly to the site, I get an error when deactivating the feature at the site collection level.

Does VS2010 do something different that allows the solution to be activated despite running into an error when done manually? Does this mean there is a bug in my event receiver feature for the timer job?

Thanks.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

How are you activating the feature? Timer jobs can't be activated through the GUI (i.e., Site Settings -> Site Collection Features) -- you'll need to use PowerShell (SP-EnableFeature).

share|improve this answer
    
Ohh... is that why? I see the feature listed in the site collection settings, but I actually am not allowed to click "Activate" here and have to enable it through powershell? Is that what you mean? –  user11457 Nov 13 '12 at 21:41
    
Okay, apparently the pretty little activate button in the GUI is just for show in this case. I went ahead and activated through powershell and it worked. Thanks, Ted. –  user11457 Nov 13 '12 at 21:57
    
Cool, glad that worked! I had this error before - I guess it comes down to database permissions... the server account that would execute the command through the GUI doesn't have the right permissions. –  Ted N. Nov 13 '12 at 22:43
add comment

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.