This is a mirror of official site: http://jasper-net.blogspot.com/

Uri scheme ‘Http's’ is invalid; expected http when using SSL in WCF

| Wednesday, January 12, 2011
Ok, so I still working on setting up SSL on my WCF endpoints.  I thought I had everything working nicely but when I was porting my changes from a test application into my real application I of course screwed a few things up (go figure).  When I would try to open the service host I would get the error below.

{"The provided URI scheme 'https' is invalid; expected 'http'.\r\nParameter name: context.ListenUriBaseAddress"}

This was odd as I knew I was using my SSL binding and everything else looked correct (See Below).

image_5F00_thumb_5F00_775B0567.png

However after looking at the binding for a minute I realized what I had done.  When coping over the security info I pasted None in the Mode attribute rather than the clientCredentialType attribute.  Once I noticed this i changed it to be like below.

image_5F00_thumb_5F00_3A0A2AD3.png

Read more: Derik Whittaker

Posted via email from .NET Info

0 comments: