WCF Transport Security w/Anonymous Client Problem
I've created a WCF service that I want to use transprot security with anonymous client access. The WCF service web.config lokks as follows:
<
system.serviceModel><
services><
servicename="EDS.Calm.Web.Service.LogMessageService" behaviorConfiguration="LogMessageServiceBehavior"><
endpointaddress=""binding="wsHttpBinding"
bindingConfiguration="LogMessageServiceBinding"
contract="Web.Service.ILogMessageService" />
</< FONT>service>
</< FONT>services>
<
bindings><
wsHttpBinding><
bindingname="LogMessageServiceBinding"><
securitymode="Transport"><
transportclientCredentialType="None"/></< FONT>security>
</< FONT>binding>
</< FONT>wsHttpBinding>
</< FONT>bindings>
<behaviors><
serviceBehaviors><
behaviorname="LogMessageServiceBehavior"><
serviceDebugincludeExceptionDetailInFaults="False" /></< FONT>behavior>
</< FONT>serviceBehaviors>
</< FONT>behaviors>
</< FONT>system.serviceModel>
I created a test certificate using makecert.exe, following the WS Transport Security example on MSDN. The makecert.exe execution I used was as follows:
makecert.exe -sr LocalMachine -ss My -n CN=LogMessageService-HTTPS-Server -sky exchange -sk LogMessageService-HTTPS-Key
I added the certificate to my local IIS, using the Web Server Certificate Wizard. I was then able to successfully access the service in a browser by using the HTTPS address:https://localhost/CalmWsLocal/LogMessageService.svc
The problem I'm encountering is when I attempt to Add Service Reference within Visual Studio 2005, I get the following error:
HTTP GET Error
URI:https://localhost/CalmWsLocal/LogMessageService.svc
There was an error downloading
'https://localhost/CalmWsLocal/LogMessageService.svc'.
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
The remote certificate is invalid according to the validation procedure.

