WCF error - There was no endpoint listening at

后端 未结 6 1678
我寻月下人不归
我寻月下人不归 2020-12-08 04:53

I am developing a WCF service, running IIS6 on Window server 2003. I have built a test client to talk to the WCF service and I am getting the error below. I have been lookin

相关标签:
6条回答
  • 2020-12-08 04:59

    in my case

    my service has function to Upload Files

    and this error just shown up on trying to upload Big Files

    so I found this answer to Increase maxRequestLength to needed value in web.config

    and problem solved

    if you don't make any upload or download operations maybe this answer will not help you

    0 讨论(0)
  • 2020-12-08 05:02

    Different case but may help someone,

    In my case Window firewall was enabled on Server,

    Two thinks can be done,

    1) Disable windows firewall (your on risk but it will get thing work)

    2) Add port in inbound rule.

    Thanks .

    0 讨论(0)
  • 2020-12-08 05:14

    You do not define a binding in your service's config, so you are getting the default values for wsHttpBinding, and the default value for securityMode\transport for that binding is Message.

    Try copying your binding configuration from the client's config to your service config and assign that binding to the endpoint via the bindingConfiguration attribute:

    <bindings>
      <wsHttpBinding>
        <binding name="ota2010AEndpoint" 
                 .......>
          <readerQuotas maxDepth="32" ... />
            <reliableSession ordered="true" .... />
              <security mode="Transport">
                <transport clientCredentialType="None" proxyCredentialType="None"
                           realm="" />
                <message clientCredentialType="Windows" negotiateServiceCredential="true"
                         establishSecurityContext="true" />
              </security>
        </binding>
      </wsHttpBinding>
    </bindings>    
    

    (Snipped parts of the config to save space in the answer).

    <service name="Synxis" behaviorConfiguration="SynxisWCF">
        <endpoint address="" name="wsHttpEndpoint" 
                  binding="wsHttpBinding" 
                  bindingConfiguration="ota2010AEndpoint"
                  contract="Synxis" />
    

    This will then assign your defined binding (with Transport security) to the endpoint.

    0 讨论(0)
  • 2020-12-08 05:15

    You can solve the issue by clearing value of address in endpoint tag in web.config:

    <endpoint address="" name="wsHttpEndpoint"  .......           />
    
    0 讨论(0)
  • 2020-12-08 05:22

    I was getting the same error with a service access. It was working in browser, but wasnt working when I try to access it in my asp.net/c# application. I changed application pool from appPoolIdentity to NetworkService, and it start working. Seems like a permission issue to me.

    0 讨论(0)
  • 2020-12-08 05:23

    I had the same issue. For me I noticed that the https is using another Certificate which was invalid in terms of expiration date. Not sure why it happened. I changed the Https port number and a new self signed cert. WCFtestClinet could connect to the server via HTTPS!

    0 讨论(0)
提交回复
热议问题