none
WCF application Endpoint not found RRS feed

  • Question


  • So the problem I could guess I'm facing is the configuration of web config. Let me tell what I'm doing,

    1. Created WCF library
    2. created on WCF application and refer the library Dll.

    After that when I run the WCF application it gives me the error endpoint not found.

    <system.serviceModel>
        <services>
          <service name="Boost.Web.CARD.services.CardServiceLibrary.CardService" 
                   behaviorConfiguration="HostBehavior">
            <endpoint 
                address="" 
                binding="webHttpBinding" bindingConfiguration="CardCustomBinding" 
                contract="Boost.Web.CARD.services.CardServiceLibrary.ICardService"/>
          </service>
        </services>
        <diagnostics wmiProviderEnabled="true">
          <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true"/>
        </diagnostics>
        <bindings>
          <webHttpBinding>
            <binding name="CardCustomBinding" allowCookies="true" 
                     maxBufferSize="20000000" maxBufferPoolSize="20000000" 
                     maxReceivedMessageSize="20000000">
              <readerQuotas maxDepth="32" maxStringContentLength="20000000"  
                            maxArrayLength="20000000"/>
              <security mode="None"/>
            </binding>
          </webHttpBinding>
        </bindings>
        <behaviors>
          <serviceBehaviors>
            <behavior name="HostBehavior">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      </system.serviceModel>

    Experts please find out what is the issue. I also wanted to mention I just want to test it on my local machine not on the server. I am adding my WCF library config part as well that might also help in sorting out the issue.

     <system.serviceModel>
    <services>
      <service behaviorConfiguration="Boost.Web.CARD.services.CardServiceLibrary.Service1Behavior" name="Boost.Web.CARD.services.CardServiceLibrary.CardService">
        <endpoint address="" behaviorConfiguration="Web" binding="webHttpBinding" contract="Boost.Web.CARD.services.CardServiceLibrary.ICardService" />
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8080/service/1.0/rest" />
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <endpointBehaviors>
        <behavior name="Web">
          <webHttp />
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="Boost.Web.CARD.services.CardServiceLibrary.Service1Behavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>

    Let me know what I need to change for make it working.


    shawn aslam

    Tuesday, May 6, 2014 12:18 PM

Answers

  • Hi,

    For your WCF Service library I see that you have used the following:

     <endpointBehaviors>
        <behavior name="Web">
          <webHttp />
        </behavior>
      </endpointBehaviors>


    But you do not apply it to the endpoint, so please modify your endpoint as following:

    <endpoint address="" behaviorConfiguration="Web" binding="webHttpBinding" 
    contract="Boost.Web.CARD.services.CardServiceLibrary.ICardService"
    behaviorConfiguration="web" />

    Then for your WCF service, please do not forget to add the endpointBehaviors and apply it to the endpoint.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, May 7, 2014 6:48 AM
    Moderator

All replies

  • Maybe a firewall is blocking the port 8080.
    Tuesday, May 6, 2014 3:48 PM
  • Hi,

    For your WCF Service library I see that you have used the following:

     <endpointBehaviors>
        <behavior name="Web">
          <webHttp />
        </behavior>
      </endpointBehaviors>


    But you do not apply it to the endpoint, so please modify your endpoint as following:

    <endpoint address="" behaviorConfiguration="Web" binding="webHttpBinding" 
    contract="Boost.Web.CARD.services.CardServiceLibrary.ICardService"
    behaviorConfiguration="web" />

    Then for your WCF service, please do not forget to add the endpointBehaviors and apply it to the endpoint.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, May 7, 2014 6:48 AM
    Moderator