WCF Distributed development Common errors (21)

Source: Internet
Author: User

WCF distributed Development common errors: Unable to the open its Ichannellistener. The distributor failed to open the listener

I encountered this error while I was doing WCF security verification programming based on UserName and Passoword:

The ChannelDispatcher at ' Http://localhost:8001/WCFService ' and contract (s) ' "Iwcfservice" ' is unable to open its Ichanne  Llistener. ' Http://localhost:8001/WCFService ' with contract (s) ' "Iwcfservice channel distributor failed to channel open listener. WCF security has been a problem for many people, and many WCF learners also have a headache. This mistake I tried for a long time did not solve. Later I sent this issue to WCF English Forum, there is a foreigner Rodrigo answered my question, but there is no direct answer, is to give me a hint. Because I had previously guessed that certificates could not be applied in WCF security mode. I don't need to use it because I remember it in WSE3.0. He told WCF security mandatory requirements to provide a certificate "1" original problem address: Http://social.microsoft.com/Forums/zh-CN/wcf/threads:

I have a question for WCF UserName and Passoword Validation.

I Use the security mode,but and Nettcpbinding,console selfhost.

But when I run the host Application,then throwed a exception:

The ChannelDispatcher at ' Net.tcp://localhost:9001/wcfservice ' and contract (s) ' "Iwcfservice" ' is unable to open its Icha Nnellistener.

I have try to solve it myself,but, all methods are Helpless,when I remove the codes in the config file it is ok:

<binding  name="MessageAndUserName"   >

          <security mode="Message">
            <message algorithmSuite="Basic256" clientCredentialType="UserName"/>
          </security>
        </binding>

Is there anyone can give some tips?

A lot

Error screenshot:

-----------------------------------------------------------------

"2" Reason:

Because the security model used by the WCF service is: message. WCF requires message security to provide certificate support. There are no settings in the configuration file. That's why the error occurred.

Many of the posts I searched for this error, basic questions and solutions are not clear, leading to many reasons for this problem. I finally sent this question to WCF's English forum, hoping for a helpful answer.

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.