I am experiencing the same issue described in this thread: http://social.msdn.microsoft.com/Forums/sharepoint/en-US/a0a62d93-48af-408b-bc08-a4c2176211fa/apps-fail-to-install-due-to-applockdown-feature-not-activating
I did make a reply in that thread but thought I should start a new one in order to get more exposure. The problem is that when deploying my SP app after reaching the 'Installing App to Sharepoint' step VS throws the error mentioned in the title. As I mentioned in the other thread, I created a branch of the solution (contains single SP App, Database and Web projects) in order to update some functionality. The only changes I made were to contents of a few JS files, no files were added or removed. The branch will successfully deploy but the original solution continues to get the error when attempting to deploy. The url of my tenancy ishttps://h3me365.sharepoint.com/sites/ben and I've also tried deploying to a Team Site subsite athttps://h3me365.sharepoint.com/sites/ben/ts. Here is the full stack trace of the exception:
3> App failed to install, cleaning up...3> Successfully uninstalled the app for SharePoint.
3> App installation encountered the following errors:
3> 6/25/2013 12:06:48 PM
3>
3> @"Error 1
3> CorrelationId: 8556d4a4-29e5-45dc-83bc-139e8ddfc406
3> ErrorDetail: There was a problem applying the web template for the app web.
3> ErrorType: App
3> ErrorTypeName: App Related
3> ExceptionMessage: Failed to activate feature 'AppLockdown' (id: '23330bdb-b83e-4e09-8770-8155aa5e87fd'). The feature is not a member of the associated site subscription feature pack.
3> Source: AppWeb
3> SourceName: App Web Deployment
3>Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.
3>Exception Message: Failed to install app for SharePoint. Please see the output window for details.
3>Exception Type Name: System.InvalidOperationException
3>Exception Stack Trace: at Microsoft.VisualStudio.SharePoint.AppInstaller.InstallApp(IDeploymentContext context, Guid appInstanceId, AppVersionedId appVersionedId)
3> at Microsoft.VisualStudio.SharePoint.InstallAppForSharePoint.InstallAppPart2(IDeploymentContext context, String packagePath, Guid appInstanceId, AppVersionedId appVersionedId)
3> at Microsoft.VisualStudio.SharePoint.InstallAppForSharePoint.Execute(IDeploymentContext context)
3> at Microsoft.VisualStudio.SharePoint.Deployment.ConfigurationExecutor.Execute()
3> at Microsoft.VisualStudio.SharePoint.Deployment.WspDeploymentHandler.Deploy()