When I tried to add a SharePoint mvc app I am getting following error:
Error occurred in deployment step \'Install app for SharePoint\':
Failed to install app f
Something similar happened me. I ran JSLint from Visual Studio and it added a .json file which should not be deployed with the app. Setting the deployment type to NoDeployment fixed it.
In my case I got this error when I inadvertently changed the TemplateType value in the instance's Elements.xml
file .without making the same change in the Element's Definition (the other Elements.xml
directly under the Elements root).
Therefore there was a mismatch in the two elements.xml
of the list being deployed.
Solution
Configure Managed Metadata service application correctly.
Check your domain ip in DNS server.(get your ip from ipconfing from CMD )
Also make sure you have the below service applications configured correctly
App Management Service Application.
Microsoft SharePoint Foundation Subscription Settings Service Application.
Then i looked in to Event Viewer. I found below problem
Then I started the Distributed Cache .
Then i deploy the solution the problem solved. :)
More Details :- http://sharepointstuts.blogspot.com/2015/12/the-content-database-on-server-is.html
It is because SharePoint is trying to activate your app as a standard SharePoint feature, when its really an App.
In the features folder of the SharePoint project, there will be a Feature named Feature1.
Open Feature1 and ensure it's contained in the "Items in the solution" list and not in the "Items in the feature" list.
After that you should be able to deploy.
I had the same problem after updateding my NuGet packages. A file called version.json was added and caused this issue. Setting the deployment type to NoDeployment fixed it.
I saw this error when I forgot to open Visual Studio with "Run as administrator" privileges.