wcf - entirely removed <system.serviceModel> yet still receive multiple http endpoints error -


i getting error: collection contains address scheme http. there can @ 1 address per scheme in collection. if service being hosted in iis can fix problem setting 'system.servicemodel/servicehostingenvironment/multiplesitebindingsenabled' true or specifying 'system.servicemodel/servicehostingenvironment/baseaddressprefixfilters'.

if set <servicehostingenvironment multiplesitebindingsenabled="true" /> this error:

when 'system.servicemodel/servicehostingenvironment/multiplesitebindingsenabled' set true in configuration, endpoints required specify relative address. if specifying relative listen uri on endpoint, address can absolute. fix problem, specify relative uri endpoint

ok question this, if entirely remove whole section config file, still receive first error. meaning iis thinks have multiple endpoints when there none what-so-ever in config file. have new install of iis on windows 2012 server (iis 8), asp.net pages hosted fine. app runs fine on both windows 7 , windows 2003 server (iis 6).

this service model section of config file:

<system.servicemodel> <servicehostingenvironment multiplesitebindingsenabled="true" />       <service behaviorconfiguration="metadatasupport_behaviour" name="myserver.service.gateway">     <host>       <baseaddresses>         <add baseaddress="http://www.myserver.com.au/service/"/>       </baseaddresses>     </host>     <endpoint binding="basichttpbinding" bindingconfiguration="basichttpbinding_configuration_nosecurity" contract="myserver.service.igateway"       address="gateway.svc" listenuri="http://www.myserver.com.au/service/gateway.svc">     </endpoint>     <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange">     </endpoint>   </service>       </services>  <bindings>         <basichttpbinding>             <binding name="basichttpbinding_configuration_nosecurity" receivetimeout="23:10:00" sendtimeout="23:10:00" maxbufferpoolsize="2147483647" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647">       <readerquotas maxdepth="32000" maxstringcontentlength="8192000" maxarraylength="16384000" maxbytesperread="1024000" maxnametablecharcount="16384000" />       <security mode="none">         <transport clientcredentialtype="windows" />       </security>     </binding>   </basichttpbinding> </bindings>  <behaviors>   <servicebehaviors>     <behavior name="metadatasupport_behaviour">       <servicemetadata httpgetenabled="true" httpgeturl="http://www.myserver.com.au/service/gateway.svc" httpsgetenabled="true"         httpsgeturl="https://www.myserver.com.au/service/gateway.svc"/>       <servicedebug includeexceptiondetailinfaults="true" httphelppageenabled="false" httpshelppageenabled="false"/>     </behavior>      <behavior name="basichttp_servicebehavior">       <servicemetadata httpgetenabled="true" httpsgetenabled="true" />       <servicedebug includeexceptiondetailinfaults="true" />     </behavior>    </servicebehaviors> </behaviors> 

please please help!

ok managed work complete stripping out of servicemodel section , replacing this:

<system.servicemodel>         <behaviors>           <servicebehaviors>             <behavior>               <!-- avoid disclosing metadata information, set values below false before deployment -->               <servicemetadata httpgetenabled="true" httpsgetenabled="true"/>               <!-- receive exception details in faults debugging purposes, set value below true.  set false before deployment avoid disclosing exception information -->               <servicedebug includeexceptiondetailinfaults="false"/>             </behavior>           </servicebehaviors>         </behaviors>         <protocolmapping>             <add binding="basichttpsbinding" scheme="https" />         </protocolmapping>              <servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true" />   </system.servicemodel> 

above default service config newly created .net 4.5 wcf iis hosted service. means had add/edit these:

<httpruntime targetframework="4.5"/>     <compilation targetframework="4.5"/> 

Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -