I am trying to create provider hosted MVC App by enabling Remote Event Receiver. When I try to deploy the app it is getting deployed but when I click Trust IT button after some time I am getting error message and also the app is not getting installed.
CorrelationId: 29ca572c-d5df-49cb-b46a-370d73277982
ErrorDetail: The remote event receiver callout failed.
ErrorType: Transient
ErrorTypeName: Intermittent
ExceptionMessage: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'.
Source: Common
SourceName: Common App Deployment
In the client IIS server web site has Widows authentication enabled and the service folder got enabled with Anonymous authentication.
And in the web.config file I have binding details as
<binding name="SPFilesAccessServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
I would like to know what I am missing in setting the environment.
SharePoint 2013 server installed in server 2012 [on premises]
MVC web application hosted in windows 8 IIS 8