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.