Activate selected features not working with VS2013 and CKS:Dev 2.0



I can't use the "deploy selected features" feature anymore with VS2013 and CKSDev 2.0 (VS2013 only version)... Error message belw:

Error occurred in deployment step 'Activate selected Features': Command ID 'Deployment.ActivateFeatures' is invalid.

The command seems to be missing from the assembly, is it my environment or the development is not fully complete ?



WesHackett wrote Jun 27, 2014 at 3:25 PM

You might just have to reconfig the deployment steps by removing them and re-adding if they were configured via a different version. It shouldnt make a difference but its the only thig i can think of right now. I can't replicate on my environment this problem

LLoyd_Bee wrote Jun 30, 2014 at 5:49 AM

Thanks for your answer!

Removing, saving, and re-adding deployment step does not solve the problem, though: it fails with the same error "Error occurred in deployment step 'Activate selected Features': Command ID 'Deployment.ActivateFeatures' is invalid"...

LLoyd_Bee wrote Jun 30, 2014 at 5:50 AM

Maybe this is caused by an upgrade issue ? It was a VS2010 with CKSDev 1.2 project that was upgraded to VS2013...

WesHackett wrote Jun 30, 2014 at 7:47 AM

Could you detail a bit more about your solution config?

Like which VS version you are running
What the deployment steps are for the active build config

LLoyd_Bee wrote Jun 30, 2014 at 8:20 AM

Here is my VS Config:

Microsoft Visual Studio Professional 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

Office Developer Tools - May 2014 Update ENU 06177-004-0444002-02730
Microsoft Office Developer Tools for Visual Studio 2013 - May 2014 Update ENU
Team Explorer for Visual Studio 2013 06177-004-0444002-02730
Visual Basic 2013 06177-004-0444002-02730
Visual C# 2013 06177-004-0444002-02730
Visual C++ 2013 06177-004-0444002-02730
Microsoft Visual C++ 2013
Visual F# 2013 06177-004-0444002-02730
Microsoft Visual F# 2013
Visual Studio 2013 Code Analysis Spell Checker 06177-004-0444002-02730
ASP.NET and Web Tools 2013.2.50425
ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0
ASP.NET Web Frameworks and Tools 2013 5.1.20409.0
Common Azure Tools 1.1
Community Kit for SharePoint: Development Tools Edition for VS2013
InstallShield Limited Edition
NuGet Package Manager 2.8.50313.46
PreEmptive Analytics Visualizer 1.2
SQL Server Data Tools 12.0.30919.1
Windows Azure Mobile Services Tools 1.1
Windows Phone 8.1 SDK Integration 1.0
Workflow Manager Tools 1.0 1.0

And my deployment steps are:
Run Pre-Deployment Command (stopping services, removing unity dlls from cache, and restarting services)
Recycle IIS Application Pool
Retract Solution
Add Solution
Activate selected Features
Run Post-Deployment Command

wrote Sep 17, 2014 at 4:55 PM

katman26 wrote Sep 17, 2014 at 4:57 PM

I don't know if this is related, but I'm getting the following error -
Error 12 Error occurred in deployment step 'Activate selected Features': Error in line 1 position 313. Element 'http://schemas.datacontract.org/2004/07/Microsoft.VisualStudio.SharePoint.Commands:Value' contains data from a type that maps to the name 'http://schemas.datacontract.org/2004/07/CKS.Dev12.VisualStudio.SharePoint.Deployment.DeploymentSteps:FeatureActivationInfo'. The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver or add the type corresponding to 'FeatureActivationInfo' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.