Derik Whittaker

Syndication

News


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

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

 

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

Changing the Mode to Transport worked like a charm and removed my error.

Moral of the story is this.  If you get the error above and you are using SSL double check you have security section setup correction on your binding.

Till next time,


Posted 01-11-2011 2:07 PM by Derik Whittaker
Filed under:

[Advertisement]

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)