SharePoint App Deployment error : 'Failed to install app for SharePoint'

前端 未结 10 2625
遥遥无期
遥遥无期 2021-02-19 10:03

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         


        
相关标签:
10条回答
  • 2021-02-19 10:09

    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.

    0 讨论(0)
  • 2021-02-19 10:15

    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.

    0 讨论(0)
  • 2021-02-19 10:15

    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

    1. App Management Service Application.

    2. 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

    0 讨论(0)
  • 2021-02-19 10:16

    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.

    0 讨论(0)
  • 2021-02-19 10:21

    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.

    0 讨论(0)
  • 2021-02-19 10:21

    I saw this error when I forgot to open Visual Studio with "Run as administrator" privileges.

    0 讨论(0)
提交回复
热议问题