WCF Service - Endpoint is not showing

JesalynOlson

I have a WCF Service where it has one endpoint and I have the service contract and operation contract setup in the config file but when I run the service, it cannot find the endpoint although I configured it in the web.config.

This service will be setup in IIS so I have no base address setup.

The ServiceContract has a configuration name of agent_port_type and the service behavior has a configuration name of agent_service. I am using basicHttpBinding.

Below is a copy of part of my config file:

 <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="ETAOutboundServiceBehavior">
          <serviceMetadata httpGetEnabled="true"  httpsGetEnabled="true"  />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
        <behavior name="Metadata">
          <serviceMetadata httpGetEnabled="true"  httpsGetEnabled="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service behaviorConfiguration="ETAOutboundServiceBehavior" name="agent_service">
        <clear />
        <endpoint address="" name="agent_interface" binding="basicHttpBinding" contract="agent_port_type"
          listenUriMode="Explicit" />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"
          listenUriMode="Explicit" />
      </service>
    </services>
    <protocolMapping>
        <add binding="basicHttpsBinding" scheme="https" />
    </protocolMapping>    
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  </system.serviceModel>

Any help would be appreciated. I had it working on a different service fine but then I used svcutil to create agent_port_type and it is not working.

Shiraz Bhaiji

You should try simplifying the config to something that Works, then add extra options as need.

Start With:

  • Remove Clear tag
  • Remove all References to HTTPS
  • Remove listenURIMode

  • Add an address for the endpoint

  • Check the IIS log that you are calling the service that you think you are calling

  • Add a syntax error to Your config and check that it fails (to make sure that the config file you are editing is the one being used)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

WCF Web Service MSMQ Endpoint

From Dev

WCF Endpoint not found for service interface

From Dev

HTTP Endpoint for WCF Service in Azure Service Fabric

From Dev

WCF Web Service Client no endpoint listening

From Dev

WCF Service Base Address vs endpoint address

From Dev

Monitor WCF service with net.tcp endpoint

From Dev

Cannot add endpoint for WCF service in WinForms

From Dev

WCF Service Base Address vs endpoint address

From Dev

WCF Web Service Client no endpoint listening

From Dev

Cannot add endpoint for WCF service in WinForms

From Dev

WCF Service Library endpoint not found with POST

From Dev

WCF service endpoint not accessible in self-hosting

From Dev

New function added in WCF service is not showing on Client

From Dev

WCF This could be due to the service endpoint binding not using the HTTP protocol

From Dev

Maintain security configuration after changing WCF service endpoint programmatically

From Dev

Consuming WCF Service Reference: Endpoint not found / 404 page not found

From Dev

Generate client proxy from endpoint address WCF service

From Dev

How to configure WCF service endpoint for a third party client

From Dev

Should I use localhost in the endpoint address of a WCF service?

From Dev

Consume WCF service in winform, how to dynamically set Endpoint element and contract

From Dev

Could not find endpoint element when consume WCF service

From Dev

Can I programmatically connect to a different WCF endpoint in my web service?

From Dev

Windows Impersonation in an on-premises WCF Service using an Azure Service Bus Endpoint

From Dev

Hosting a WCF service endpoint for Azure Service Bus Relay inside an Azure WebSite

From Dev

Windows Impersonation in an on-premises WCF Service using an Azure Service Bus Endpoint

From Dev

WCF error "there was no endpoint listening at ..."

From Dev

JMeter and WCF with TCP endpoint

From Dev

JMeter and WCF with TCP endpoint

From Dev

WCF Restful Web Service Endpoint exposed but methods all return http 404 not found c#

Related Related

  1. 1

    WCF Web Service MSMQ Endpoint

  2. 2

    WCF Endpoint not found for service interface

  3. 3

    HTTP Endpoint for WCF Service in Azure Service Fabric

  4. 4

    WCF Web Service Client no endpoint listening

  5. 5

    WCF Service Base Address vs endpoint address

  6. 6

    Monitor WCF service with net.tcp endpoint

  7. 7

    Cannot add endpoint for WCF service in WinForms

  8. 8

    WCF Service Base Address vs endpoint address

  9. 9

    WCF Web Service Client no endpoint listening

  10. 10

    Cannot add endpoint for WCF service in WinForms

  11. 11

    WCF Service Library endpoint not found with POST

  12. 12

    WCF service endpoint not accessible in self-hosting

  13. 13

    New function added in WCF service is not showing on Client

  14. 14

    WCF This could be due to the service endpoint binding not using the HTTP protocol

  15. 15

    Maintain security configuration after changing WCF service endpoint programmatically

  16. 16

    Consuming WCF Service Reference: Endpoint not found / 404 page not found

  17. 17

    Generate client proxy from endpoint address WCF service

  18. 18

    How to configure WCF service endpoint for a third party client

  19. 19

    Should I use localhost in the endpoint address of a WCF service?

  20. 20

    Consume WCF service in winform, how to dynamically set Endpoint element and contract

  21. 21

    Could not find endpoint element when consume WCF service

  22. 22

    Can I programmatically connect to a different WCF endpoint in my web service?

  23. 23

    Windows Impersonation in an on-premises WCF Service using an Azure Service Bus Endpoint

  24. 24

    Hosting a WCF service endpoint for Azure Service Bus Relay inside an Azure WebSite

  25. 25

    Windows Impersonation in an on-premises WCF Service using an Azure Service Bus Endpoint

  26. 26

    WCF error "there was no endpoint listening at ..."

  27. 27

    JMeter and WCF with TCP endpoint

  28. 28

    JMeter and WCF with TCP endpoint

  29. 29

    WCF Restful Web Service Endpoint exposed but methods all return http 404 not found c#

HotTag

Archive