Apps

Apps

Common Errors When Installing App


Error 1

Error occurred in deployment step 'install app for SharePoint': The System Account cannot perform this action.

Create an another account in active directory and give admin privilege. And do the following.

1. Login in system account.
2. Open sql server management studio.
3. Expand security and expand login.
4. Select the user in security and right click select properties.
5. Select user mapping.
6. Select the following DB and give dbowner permission.
7. Add the user in sharepoint site.

And login to the new account and deploy app in it using visual studio. Run visual studio as administrator.

Error 2

Error occurred in deployment step "Installed app for SharePoint": The local SharePoint server is not available. Check that the server is running and connected to the SharePoint Farm.

Solution

This means that the current user does not have permission to deploy the app in the site.

For getting permission the user should have permission to the following

1. Content database
2. Configuration DB
3. Site collection permission.

Do the following.

1. Login in system account.
2. Open sql server management studio.
3. Expand security and expand login.
4. Select the user in security and right click select properties.
5. Select user mapping.
6. Select the following DB and give dbowner permission.
7. Add the user in sharepoint site.

Error 3

The Subscription Settings service and corresponding application and proxy needs to be running in order to make changes to these settings. 

This means the subscription service and application pool for the service application need to be created.

Solution

Run powershell as administrator and execute the following scripts.

add-pssnapin "Microsoft.Sharepoint.Powershell"

$MyAccount = Get-SPManagedAccount sp14h\uradminaccount

Remove-SPServiceApplicationPool -Identity "Application pool name"

$appPoolSet = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $MyAccount

$appSet = New-SPSubscriptionSettingsServiceApplication -ApplicationPool $appPoolSet -Name "Application pool name" -DatabaseName "DatabaseName"

$proxySet = New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication $appSet

Error 4

Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details. Output ErrorDetail: Apps are disabled on this site.

This means that there is no space to execute the app. We know that app need a separt domain to execute called appweb or app domain. In this case no app domain is configured in central admin for the app to execute. And this app web is different from the main web.

Solution

Create a new domain the DNS and configure its url in central admin.

1. Open DNS from administrative tools.
2. Expand the main domain.
3. Create a subdomain in it called share14app.com like this. Dont use app.sharepoint14.com etc
4. Create a New Alias(CNAME).
5. Open central administration.
6. Go to app section
7. Open Configure app urls
8. Add the new domain in app domain and give anything like "apps" for app prefix.

Error 5

The requested service, xx/AppMng.svc could not be activated.

Solution

Free some memory by closing some applications and deploy again.

Error 6

Multiple login prompt when clicking sharepoint app.

Solution

Go to refistry and add DisableLoopBackCheck and set the value from 0 to 1.