I go to https: //mywebsite/MyApp/Myservice.svc and get the following error:
(the link works if I use http: //)
"Service" /MyApp/MyService.svc "cannot be activated due to an exception during compilation. Exception message: Could not find a base address that matches the https scheme for the endpoint with the binding BasicHttpBinding. [Http] .."
EDIT: So, if I change address="" to address="https:// ..." , then I get this error:
"Error: https protocol is not supported ..... ChannelDispatcher in ' https: //.../Annotation.svc ' with contract (s)" Annotations "cannot open its IChannelListener.
Here is what my Web.Config looks like:
<services> <service behaviorConfiguration="AnnotationWCF.AnnotationBehavior" name="AnnotationWCF.Annotation"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Annotation" contract="AnnotationWCF.Annotation" /> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="SecureTransport" contract="AnnotationWCF.Annotation" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service>
<bindings> <basicHttpBinding> <binding name="BasicHttpBinding_Annotation" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> </binding> <binding name="SecureTransport" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <security mode="Transport"> <transport clientCredentialType="None"/> </security> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> </binding> </basicHttpBinding>
Mike Blandford Dec 12 '08 at 16:32 2008-12-12 16:32
source share