Official instruction on microsoft is here: Configure an environment for apps for SharePoint (SharePoint 2013)

Win 2012, Sharepoint Server 2013 (15.0.4420.1017)

You download Sharepoint App using Site Contents-> “Add an app”-> “Sharepoint Store”. It download successfully and appears with green “New” label. But when You try to add it to the page, it asks password and then gives permissions error:

Enter username and password for http://apps-*******

I tried to do it on different test machines and behavior was same.

Disable loopback, by example using Sharepoint Powershell console:


New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword

upd: You also could met the error when “Anonymous acees” is turned on.

Request failed. Error code: 500 Internal Server Error
Error text: {“error”:{“code”:”-2147024846, Microsoft.SharePoint.Client.ApiBlockedException”,”message”:{“lang”:”en-US”,”value”:”The method \”GetItems\” of the type \”List\” with id \”{d89f0b18-614e-4b4a-bac0-fd6142b55448}\” is blocked by the administrator on the server.”}}}

You can fix it using another powershell command:

$wa = Get-SPWebApplication -Identity "<a href="http://server%22/">http://server"</a>
$wa.ClientCallableSettings.AnonymousRestrictedTypes.Remove([Microsoft.SharePoint.SPList], "GetItems")

This function makes “GetItems” available for anonymous users. You can return this option back using same script, but change “AnonymousRestrictedTypes.Remove” to “AnonymousRestrictedTypes.Add”.

  1. Bijay says:

    Hi…. I tried the first approach. But still I am getting the same error.

Click below to expand comments form..