Warning: count(): Parameter must be an array or an object that implements Countable in E:\Vhosts\mysticslayer.com\httpdocs\wp-includes\post-template.php on line 275

Warning: count(): Parameter must be an array or an object that implements Countable in E:\Vhosts\mysticslayer.com\httpdocs\wp-includes\post-template.php on line 275

Warning: count(): Parameter must be an array or an object that implements Countable in E:\Vhosts\mysticslayer.com\httpdocs\wp-includes\post-template.php on line 275

Warning: count(): Parameter must be an array or an object that implements Countable in E:\Vhosts\mysticslayer.com\httpdocs\wp-includes\post-template.php on line 275
André Krijnen

Invalid features SharePoint 2010: Features due to a Failed, Missing, or Unsuccessful Activation SharePoint WSP

by on Oct.04, 2010, under features, Powershell, Programming, SharePoint 2010, SharePoint Foundation, Visual Studio 2010

Every developer has one of those days that everything goes wrong. You developed some feature, and you decided to change the namespace of the feature. For some reason or another SharePoint 2010 doesn’t handle this well, and even Visual Studio 2010 doesn’t know how to handle it. So you received a message that you allready activated a feature with the same Id you want to deploy? And you can’t revert it in someway?

Well I thought to use PowerShell to uninstall these spfeatures which I tried, but the message was cloud and clear, can’t uninstall feature, because feature isn’t found? Huh?? Why is that? Well I tried Get-SPFeature to retreive all the features I installed, and what did I see? My features standing in that list, so I tried to remove it by Id, and what happend? Can’t find feature by Id? Crap you would say? Well I used the WssAnalyzerTool from code.msdn.microsoft.com and managed to get all the failing features.

Then I tried to run the WssRemoveFeaturesTool from the same code.msdn.microsoft.com site, but what did you say? Even that tool couldn’t find that feature… Imagine that… So the last resort: yes the plain old fashioned stsadm. Did that work well, yes!! It worked more then you could think off.

stsadm -o disablefeature -Id -force ==> Operation completed successfully
stsadm -o Uninstallfeature -id -force ==> Operation completed successfully

So you think you can do everything with powershell, well sometimes you can, sometimes you can’t.



Warning: count(): Parameter must be an array or an object that implements Countable in E:\Vhosts\mysticslayer.com\httpdocs\wp-includes\class-wp-comment-query.php on line 405

2 Comments for this entry

  • Peter

    Hi,

    Thanks, but disablefeature should be deactivatefeature I guess?

    Regards,

    Peter

  • Sean

    Thank you! I have been fighting with this for a couple of hours now with PowerShell. STSADM to the rescue; Who would have thought?!

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...