Click here to Skip to main content
15,884,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to use https for securing my application.I am using WsDualHttpBinding for the duplex communication.I have specified the ClientBaseAddress in the code.Once the channel is created my application haults.No error message specified in any of the logs.
Here are my configs

Service config
<binding name="WBWSDualHttpsBinding" closetimeout="00:10:00">
openTimeout="00:10:00" receiveTimeout="12:00:00" sendTimeout="12:00:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
<readerquotas maxdepth="50" maxstringcontentlength="2147483647">
maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="1638454" />
<reliablesession ordered="true" inactivitytimeout="12:00:00">
<security mode="Message">
<message clientcredentialtype="Certificate" negotiateservicecredential="true" algorithmsuite="Default">



<behaviors>
<servicebehaviors>
<behavior name="ServiceTransferBehaviour">
<servicemetadata httpgetenabled="true" httpsgetenabled="true">
<servicedebug includeexceptiondetailinfaults="true">
<servicecredentials>
<servicecertificate findvalue="MyCertificate" storelocation="LocalMachine" x509findtype="FindBySubjectName" storename="My">

<datacontractserializer maxitemsinobjectgraph="2147483647">
<servicethrottling maxconcurrentcalls="1000" maxconcurrentsessions="100">
maxConcurrentInstances="100" />




Client config

<behaviors>
<endpointbehaviors>
<behavior name="ClientCertificate">
<clientcredentials>
<clientcertificate findvalue="MyCertificate">
storeName="My"
storeLocation="LocalMachine"
x509FindType="FindBySubjectName"/>
<servicecertificate>
<defaultcertificate findvalue="MyCertificate">
storeLocation="LocalMachine"
storeName="My"
x509FindType="FindBySubjectName" />
<authentication certificatevalidationmode="PeerOrChainTrust">






<wsdualhttpbinding>
<binding name="WBWSDualHttpsBinding" closetimeout="00:10:00" opentimeout="00:10:00" receivetimeout="12:00:00" sendtimeout="12:00:00" bypassproxyonlocal="false">
transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true">
<readerquotas maxdepth="50" maxstringcontentlength="2147483647">
maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="1638454" />
<reliablesession ordered="true" inactivitytimeout="12:00:00">
<security mode="Message">
<message clientcredentialtype="Certificate" negotiateservicecredential="false" algorithmsuite="Default">




I want to secure my notifications also.Any help is highly appreciated
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900