title: SharePoint App Deployment error : 'Failed to install app for SharePoint'
body: <p>When I tried to add a SharePoint mvc app I am getting following error:</p>
  
  <pre><code>Error occurred in deployment step 'Install app for SharePoint': 
  Failed to install app for SharePoint. Please see the output window for details.
  </code></pre>
  
  <p>Detailed stack trace:</p>
  
  <pre><code>CorrelationId: 50583239-71cb-4b07-8bcb-4bbc51a22631
       ErrorDetail: There was a problem with activating the app web definition.
       ErrorType: App
       ErrorTypeName: App Related
       ExceptionMessage: Microsoft.SharePoint.SPException: Exception from HRESULT: 0x81070964 ---&gt; System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x81070964
  at Microsoft.SharePoint.Library.SPRequestInternalClass.EnableModuleFromXml(String bstrSetupDirectory, String bstrFeatureDirectory, String bstrUrl, String bstrXML, Boolean fForceUnghost, ISPEnableModuleCallback pModuleContext)
  at Microsoft.SharePoint.Library.SPRequest.EnableModuleFromXml(String bstrSetupDirectory, String bstrFeatureDirectory, String bstrUrl, String bstrXML, Boolean fForceUnghost, ISPEnableModuleCallback pModuleContext)
  --- End of inner exception stack trace ---
  at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionModules(SPFeaturePropertyCollection props, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)
  at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce)
  at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)
  at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)
  at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
  at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
  at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force, SPFeatureDefinitionScope featdefScope)
  at Microsoft.SharePoint.SPUserSolutionCollection.EnsureWebFeaturesActivated(SPUserSolution solution)
  at Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.ActivateSolution(SPWeb web, SPUserSolution solution)
  at Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.Deploy()
  at Microsoft.SharePoint.Administration.SPAppTask.DeployOperation()
  at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()
       Source: AppWeb
       SourceName: App Web Deployment
  </code></pre>
  
  <p>Can somebody have a light on this issue? :)</p>