The error "the caller is not authenticated by the Service" occurred during cross-machine calling of WCF.

Source: Internet
Author: User

Especially in the Windows environment, the above error message will occur regardless of TCP. Net or HTTP. The solution is to modify the config file of both the server and client.

1. Modify the config file of the server

1. Copy the content of the <bindings>... </bindings> section in the config configuration file of the client to the <system. servicemodule> </system. servicemodule> section.
2. Modify the Verification Section in each <binding> </binding>. You do not need anything else in the Verification Section. If some configuration content already exists, delete it.

 

<Security mode = "NONE"> </Security>

 

3. Add bindingconfiguration = "connection name" to the configuration of each <endpoint> segment in the <services> segment, for example:

<Endpoint address = "service" binding = "nettcpbinding" bindingconfiguration = "tcpbinding" Contract = "servercoreservice. idatabaseservice" name = "tcpbinding"/>

2. Modify the config configuration of the ClientParts

Click 2nd and 3rd on the server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.