Advertisement

Responsive Advertisement

Error occurred in deployment step 'install app for SharePoint': SharePoint APP Installation Error

This blog will help you to understand SharePoint APP installation error and many of them faced this error commonly.
The full error message is
Error occurred in deployment step 'Install App for SharePoint': Failed to install App for SharePoint

Solution to Fix this issue:
Check if the App Management Service and Subscription Service are started. You can use the following PowerShell to start them in SharePoint CA Go to Central Administration -> Services on Server.

Check this service are running by using Powershell Commands,
Step 1:
 SPSubscriptionSettingsService 
 Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} | Start-SPServiceInstance

Step2:
AppManagementServiceInstance 
Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"}

Step 3:
Specify a farm admin account, application pool, and database settings for the SPSubscriptionService and AppManagementServiceInstance services.
1. $account = Get-SPManagedAccount "SPFarm\Gowtham"
2. $AppPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account
3. $AppPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account
4. $AppSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $AppPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB
5. $proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $AppSubSvc
6. $appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp -DatabaseName AppServiceDB
7. $proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc
 

Still you faced this issue use the below steps to resolve this error.
Step 4: Optional:
Create a new web application under a new account from central administration and create New target site collection under the new web application.

For the site collection the primary administrator was the new account and the secondary administrator was the domain administrator account that I would be using in Visual Studio to deploy my app. I hope issue is fixed now.

Post a Comment

0 Comments