Note that there are some explanatory texts on larger screens.

plurals
  1. POGetting 404 no endpoint listening error WCF 4.0 using Https basicHttpBinding over Transport security
    primarykey
    data
    text
    <p>I am trying to get https security working for my wcf web service hosted in IIS 7.5. I have looked through every article I can find online regarding this and tried just about every configuration or IIS trick I could find or variation. I think this might be a IIS, windows level configuration issue. We are using a wild card SSL cert like *.mycompany.com. This cert is being used on 3 other sites already in same IIS if that has any bearing. Does anyone have any idea what I am running into here??? This is a public server, non TEST and http binding works fine. I am having this same https issue on my dev and production servers. We have another https website on this production box and it sends and receives data just fine. I am getting Exception :</p> <blockquote> <p>There was no endpoint listening at <a href="https://subdomain.mydomain.com/MyService.svc" rel="nofollow">https://subdomain.mydomain.com/MyService.svc</a> that could accept the message. This is often caused by an incorrect address or SOAP action.</p> <p>Inner Exception : </p> <p>The remote server returned an error: (404) Not Found.</p> </blockquote> <p>Here is my <code>web.config</code>:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;configuration&gt; &lt;appSettings file="LocalAppSettings.config"&gt; &lt;!--&lt;add key="CustomIISServiceHostEndPoint" value="https://subdomain.mydomain.com/MyService.svc" /&gt;--&gt; &lt;/appSettings&gt; &lt;system.web&gt; &lt;compilation debug="true" targetFramework="4.0" /&gt; &lt;customErrors mode="Off" /&gt; &lt;/system.web&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="COLWebServiceBinding" maxReceivedMessageSize="134217727" sendTimeout="00:03:00" receiveTimeout="00:03:00"&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="None" /&gt; &lt;/security&gt; &lt;readerQuotas maxArrayLength="65536" maxBytesPerRead="65536" maxStringContentLength="134217727" /&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service behaviorConfiguration="COLWebService.ServiceBehavior" name="COLWebService"&gt; &lt;endpoint address="https://subdomain.mydomain.com/MyService.svc" binding="basicHttpBinding" contract="MyCompany.COLWebService.ICOLWebService" bindingConfiguration="COLWebServiceBinding" /&gt; &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;extensions&gt; &lt;behaviorExtensions&gt; &lt;add name="errorHandler" type="MyCompany.COLWebService.ErrorHandlerBehaviorExtensionElement, MyCompany.COLWebService" /&gt; &lt;/behaviorExtensions&gt; &lt;/extensions&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="COLWebService.ServiceBehavior"&gt; &lt;serviceMetadata httpsGetEnabled="true" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt; &lt;/behavior&gt; &lt;!--&lt;behavior name=""&gt; &lt;serviceMetadata httpGetEnabled="true" /&gt; &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt; &lt;/behavior&gt;--&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="false"&gt; &lt;/serviceHostingEnvironment&gt; &lt;/system.serviceModel&gt; &lt;system.webServer&gt; &lt;modules runAllManagedModulesForAllRequests="true" /&gt; &lt;/system.webServer&gt; &lt;/configuration&gt; </code></pre> <p>And here is my client's <code>app.config</code>:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="wsHttpBinding_ICOLWebService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:03:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="134217727" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"&gt; &lt;readerQuotas maxStringContentLength="134217727" maxArrayLength="65536" maxBytesPerRead="65536" /&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="None" proxyCredentialType="None" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address="https://subdomain.mydomain.com/MyService.svc" binding="basicHttpBinding" bindingConfiguration="wsHttpBinding_ICOLWebService" contract="COLWebService.ICOLWebService" name="wsHttpBinding_ICOLWebServiceEP" /&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; &lt;/configuration&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload