Estoy intentando implementar un servicio WCF en mi servidor, alojado en IIS. Naturalmente funciona en mi máquina :)Cómo solucionar "no se pudo encontrar una dirección base que coincida con el esquema http" ... en WCF
Pero cuando despliego, me sale el siguiente error:
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
buscar en Google sobre esto, me parece que tengo que poner un elemento serviceHostingEnvironment en el web.config archivo:
<serviceHostingEnvironment>
<baseAddressPrefixFilters>
<add prefix="http://mywebsiteurl"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
Pero una vez que he hecho esto, me sale el siguiente:
Could not find a base address that matches scheme http for the endpoint with binding BasicHttpBinding. Registered base address schemes are [https].
Parece que no sabe cuál es la dirección base, pero ¿cómo la especifico? Aquí está la sección correspondiente de mi archivo web.config:
<system.serviceModel>
<serviceHostingEnvironment>
<baseAddressPrefixFilters>
<add prefix="http://mywebsiteurl"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
<behaviors>
<serviceBehaviors>
<behavior name="WcfPortalBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IWcfPortal"
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"
receiveTimeout="00:10:00" sendTimeout="00:10:00"
openTimeout="00:10:00" closeTimeout="00:10:00">
<readerQuotas maxBytesPerRead="2147483647" maxArrayLength="2147483647"
maxStringContentLength="2147483647"/>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="WcfPortalBehavior" name="Csla.Server.Hosts.Silverlight.WcfPortal">
<endpoint address="" binding="basicHttpBinding" contract="Csla.Server.Hosts.Silverlight.IWcfPortal"
bindingConfiguration="BasicHttpBinding_IWcfPortal">
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
</system.serviceModel>
¿Alguien puede arrojar algo de luz sobre lo que está pasando y cómo solucionarlo?
bueno Craig, ¿ha solucionado este problema? Permítanme ... Ahora estoy enfrentando el mismo problema :( – Lamps
¿Alguna solución final al respecto? – Kiquenet