Tuesday, October 28, 2014

The remote server returned an error (401) unauthorized sharepoint 2013

If you got the below error while developing a SharePoint hosted app:

The remote server returned an error (401) unauthorized.

Then try the below solution:

Add the below tag in web.config of your web application:

<appSettings>
        <add key="aspnet:AllowAnonymousImpersonation" value="false" />
</appSettings>

Hope it will work.


Twitter Delicious Facebook Digg Favorites More