I have deploy WCF service on IIS of Remote Desktop Machine. I can be able to access that service in my local machine's chrome browser and I have added it as a service reference in my project. Now when my project trying to access service then it's giving me error like The caller was not authenticated by the service.
.
After r&d related to it I have added below lines for solution
_client.ClientCredentials.Windows.ClientCredential.Domain = "RDP Computer name";
_client.ClientCredentials.Windows.ClientCredential.UserName = "RDP Username";
_client.ClientCredentials.Windows.ClientCredential.Password = "RDP Password";
and again when I try then error changed as a Client is unable to finish the security negotiation within the configured timeout (00:00:00). The current negotiation leg is 1 (00:00:00).
I try to find Domain name on RDP machine as per suggestion from https://support.microsoft.com/en-in/help/17463/windows-7-connect-to-another-computer-remote-desktop-connection. But I didn't find any domain name there. it's workgroup name available in workgroup area.
On my local machine project app.config file contains service code like below :
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IService1">
</binding>
</wsDualHttpBinding>
</bindings>
<client>
<endpoint address="http://xx.xx.xxx.xxx/Testing/Service1.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IService1"
contract="ServiceReference1.IService1" name="WSDualHttpBinding_IService1">
<identity>
<servicePrincipalName value="host/RDPName" />
</identity>
</endpoint>
</client>
</system.serviceModel>
however on WCF service project side web.config file contains below code :
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https"/>
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
<services>
<service name="WcfService.Service1">
<endpoint address="" binding="wsDualHttpBinding" contract="WcfService.IService1" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<timeouts closeTimeout="00:05:00" openTimeout="00:05:00" />
</host>
</service>
</services>
<bindings>
<wsDualHttpBinding>
<binding name="customBinding0"
receiveTimeout="00:05:00"
sendTimeout="00:05:00"
openTimeout="00:05:00"
closeTimeout="00:05:00"
maxBufferPoolSize="2147483647"
maxReceivedMessageSize="2147483647">
<security mode="None">
</security>
</binding>
</wsDualHttpBinding>
</bindings>
I am doing r&d from last few days for resolve this issue but not succeed at all.
please can you suggest me that what should I do for resolve this one ?
Thank you.