je vais à https://mywebsite/MyApp/Myservice.svc et obtenir l'erreur suivante:https avec l'erreur WCF: « Impossible de trouver l'adresse de base qui correspond à régime https »
(Le lien fonctionne si j'utilise http: //)
" Le service '/MyApp/MyService.svc' ne peut pas être activé en raison d'une exception lors de la compilation Le message d'exception est: Impossible de trouver une adresse de base qui correspond au schéma https pour le noeud final avec liaison BasicHttpBinding. ] .. "
EDIT: Donc, si je change address=""
-address="https:// ..."
alors je reçois cette erreur à la place:
« Erreur: Le protocole « https » est pas pris en charge ..... Le ChannelDispatcher à « https://.../Annotation.svc » avec le contrat (s) « » Annotation "'est incapable d'ouvrir son IChannelListener. "
Voici ce que mon Web.Config
ressemble à:.
<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>
Le lien -> http://blog.hackedbrain.com/archive/2006/09/26/5281.aspx ne fonctionne pas. – Lamps
Utilisez link-> http://blog.hackedbrain.com/2006/09/26/how-to-ssl-passthrough-with-wcf-or-transportwithmessagecredential-over-plain-http/ – meetjaydeep