Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET IIS WCF service ssl digital , +
I got a website working on http and https both
but only works with http not with https.

solution tried:

added binding below:
<binding name="sslBinding">
        <security mode="Transport">

referred this binding in service endpoint:
<service name="BroadcastMonitor" behaviorConfiguration="BroadcastMonitorBehavior">
                <endpoint address="" binding="basicHttpBinding" bindingConfiguration="sslBinding" contract="mView.IBroadcastMonitor">
                        <dns value="localhost" />
also tried setting httpsGetEnabled ="true" in behaviour section
<behavior name="BroadcastMonitorBehavior">
                    <serviceDebug includeExceptionDetailInFaults="true" />
                    <serviceMetadata httpsGetEnabled="true" />

I tried these in various combinations but not getting any success Frown | :(
The errors i get are:
1)Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding. Registered base address schemes are [http]
2)The HttpsGetEnabled property of ServiceMetadataBehavior is set to true and the HttpsGetUrl property is a relative address, but there is no https base address
Posted 19-Oct-11 17:20pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Also, if hosting on IIS you need to make sure your site is configured for SSL...

How to Set Up SSL on IIS 7[^]

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 223
1 Sascha Lefévre 175
2 Abhinav S 170
3 Richard Deeming 155
4 CHill60 150
0 Sergey Alexandrovich Kryukov 7,156
1 OriginalGriff 6,410
2 Maciej Los 2,877
3 Abhinav S 2,732
4 Peter Leow 2,694

Advertise | Privacy | Mobile
Web01 | 2.8.150414.1 | Last Updated 20 Oct 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100