I am trying to create a WCF service with only transport security, so I do not need SSL.
I keep getting this error message on startup:
Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding.
My Web.config file looks like this:
<?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="Binding1"> <security mode="Transport"> <transport clientCredentialType="Basic"></transport> </security> </binding> </basicHttpBinding> </bindings> <services> <service behaviorConfiguration="ServiceBehavior" name="AutoSenderWCFService.AutoSenderService"> <endpoint binding="basicHttpBinding" bindingConfiguration="Binding1" contract="AutoSenderWCFService.IService1" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="ServiceBehavior"> <serviceCredentials> <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="AutoSenderWCFService.MyValidator, AutoSenderWCFService"/> </serviceCredentials> <serviceMetadata httpGetEnabled="true"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> </configuration>
source share