Friday, 15 January 2010

c# - WCF transport with https communication with certificates issue -



c# - WCF transport with https communication with certificates issue -

i have web application hosted in iis on server communicates web service installed on same server. web service installed standard service , not through iis.

the service , running , can navigate in browser using https. added certificate using netsh: wcf transport security via certificates

however when web application tries invoke calls web service error on following:

an error occurred while making http request https://theserver/vehicleservice/connectxml/1.0/https. due fact server certificate not configured http.sys in https case. caused mismatch of security binding between client , server.

i looked deeper error , found this:

<exceptiontype>system.io.ioexception, mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089</exceptiontype> <message>unable read info transport connection: existing connection forcibly closed remote host.</message> <exceptiontype>system.net.webexception, system, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089</exceptiontype> <message>the underlying connection closed: unexpected error occurred on send.</message>

does know causing issue? need add together configuration iis?

i have tried adding certificates locally , works fine me.

your securityprotocoltype may not enabled (from windows registry). if this:

class="lang-none prettyprint-override">system.io.ioexception: unable read info transport connection

try 1 of next protocol types:

class="lang-c# prettyprint-override">servicepointmanager.securityprotocol = securityprotocoltype.ssl3; // tls, tls11, or tls12

c# web-services wcf iis ssl

No comments:

Post a Comment