KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using IIS 7. HTTPS binding is enabled on it with port number 443. I have a WCF service as an application under the website. I am trying to introduce HTTPS security to service (with basicHttpBinding) based on http://msdn.microsoft.com/en-us/library/ms729700.aspx I am getting the following error – “The provided URI scheme 'https' is invalid; expected 'http'.”. When I checked the event log it has the stack trace as follows: Stack Trace : at System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) at System.ServiceModel.Channels.HttpChannelFactory.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) What is the change required to make it working on HTTPS with basicHttpBinding? Note: Certificate is created using "Create Self Signed Certificate" in IIS 7. <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="serviceFaultBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true"/> </behavior> </serviceBehaviors> </behaviors> <services> <service name="Business.TV.Clearance.Services.ServiceHandler" behaviorConfiguration="serviceFaultBehavior"> <endpoint address="" binding="basicHttpBinding" contract="Business.TV.Clearance.Services.IServiceHandler" bindingConfiguration="httpBinding"> <identity> <dns value="localhost" /> </identity> </endpoint> </service> <bindings> <basicHttpBinding> <binding name="httpBinding" maxReceivedMessageSize="2000000" maxBufferSize="2000000"> <security mode="Transport"> <transport clientCre
Tags (comma-separated)
Save Edits
Cancel