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

前端 未结 10 2573
遥遥无期
遥遥无期 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    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.

提交回复
热议问题