WCF Distributed Development common errors (23)

Source: Internet
Author: User

WCF Distributed development Common error (D): This could being due to the fact that the server certificate being not configured properly with HTTP. SYS

When using transport security mode, wshttpbingding, the client authentication type is windows:clientcredentialtype= "Windows".

A certificate was installed and a client service reference was added. Starts the service host, and the client also adds an account. The result is a mistake.

The information is as follows:

An error occurred while making the HTTP request to Https://localhost:9001/WCFService. This could was due to the fact of that the server certificate are not configured with HTTP. SYS in the HTTPS case. This could also is caused by a mismatch to the security binding between the client and the server.

This may be because the server certificate does not match the HTTP.sys setting in the HTTPS box. It can also be caused by inconsistent binding between the client and the server.

Issue to WCF Chinese-English forum, a WCF English forum moderator Richard, gave a hint. A connection of his own. I looked at it. A little harvest.

WCF Chinese Forum question address: http://social.microsoft.com/Forums/zh-CN/wcfzhchs/thread/5ca6ee28-76cb-4395-82ea-21160cd4ebb0

WCF English Forum question address: http://social.microsoft.com/Forums/en-US/wcf/thread/c39ce206-a86b-4faf-a427-8d4e4684758c

"1" error message screenshot:

"2" Problem Reason:

The cause of this problem may be:

(1) The certificate is not set, transport security mode, you need to establish SSL Secure Sockets Layer or TLS Transport Layer Security protocol. The server will provide a certificate.

(2) The WCF endpoint address does not have a certificate set up, where SSL needs to be set to a certificate for the node address in.

"3" Solution:

(1) Make the certificate: here Direct use MakeCert tool. Microsoft Visual Studio 2008-->visual Studio tools-->visual Studio 2008 Command Prompt Line input:

Makecert-r-pe-n "Cn=frankwcfserver"-ss My-sky Exchange

You can look at the article WSE3.0 Build Web Services Security (2): Asymmetric encryption, public key, key, certificate, signature differences and contacts, and X.509 certificate acquisition and management, detailed introduction. Specific parameter Description: detailed Help documentation:

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.