locked
Could not find endpoint element with name 'MessageResponseEndpoint' and contract 'WCFBiz.IMessageProcessor' in the ServiceModel client configuration section. RRS feed

  • Question

  • User-1662538993 posted

    Hi,

    I am creating wcf service and it is giving me this error.

    Could not find endpoint element with name 'MessageResponseEndpoint' and contract 'WCFBiz.IMessageProcessor' 
    in the ServiceModel client configuration section.
    This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.

    <system.serviceModel>
        <bindings>
          <basicHttpBinding>
            <binding name="BasicHttpBinding_IDataService1" closeTimeout="00:01:00"
              openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
              allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
              messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
              useDefaultWebProxy="true">
              <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
              <security mode="None">
                <transport clientCredentialType="None" proxyCredentialType="None"
                  realm="" />
                <message clientCredentialType="UserName" algorithmSuite="Default" />
              </security>
            </binding>
          </basicHttpBinding>
          <msmqIntegrationBinding>
            <binding name="MessageProcessorBinding">
              <security mode="None" />
            </binding>
          </msmqIntegrationBinding>
        </bindings>
        <client>
          <endpoint name="MessageResponseEndpoint" address="msmq.formatname:DIRECT=.\private$\requestqueue"
            binding="msmqIntegrationBinding" bindingConfiguration="MessageProcessorBinding"
            contract="BizService.IMessageProcessor" />
          <endpoint address="http://localhost/MsmqData/DataService1.svc"
            binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IDataService1"
            contract="DataService.IDataService1" name="BasicHttpBinding_IDataService1" />
        </client>      
        <behaviors>
          <serviceBehaviors>
            <behavior>
              <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
              <serviceMetadata httpGetEnabled="true"/>
              <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
      </system.serviceModel>
    Friday, September 2, 2011 4:53 PM

Answers

  • User1927750183 posted

    hope this help.

    http://stackoverflow.com/questions/352654/could-not-find-default-endpoint-element

    http://weblogs.asp.net/paolopia/archive/2007/08/23/writing-a-wcf-message-inspector.aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, September 11, 2011 12:11 PM