none
Consuming Rest wcf Service Show error (Manual addressing is enabled on this factory, so all messages sent must be pre-addressed.) RRS feed

  • Question

  • Hi ,

     I am trying to Consume the Rest Wcf Service in Client Project . so i am getting error (Manual addressing is enabled on this factory, so all messages sent must be pre-addressed.).

    my Service Config file is :

    <system.serviceModel>
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
        <behaviors>
          <endpointBehaviors>
            <behavior name="EndpBehavior">
              <webHttp />
            </behavior>
          </endpointBehaviors>
          <serviceBehaviors>
            <behavior name="ServiceBehavior">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
            <behavior name="">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="false" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <services>
          <service behaviorConfiguration="ServiceBehavior" name="Services.SectionList">
            </endpoint>
          </service>
        </services>
      </system.serviceModel>

    Client Config file:
    system.serviceModel>
        <bindings>
          <webHttpBinding>
            <binding name="webHttpBinding_ISectionList">        
           
            </binding>
          </webHttpBinding>
        </bindings>
        <client>
          <endpoint address="http://localhost:61258/SectionList.svc"
            binding="webHttpBinding" bindingConfiguration="webHttpBinding_ISectionList"
            contract="ServiceReference1.ISectionList" name="webHttpBinding_ISectionList" />
        </client>
      </system.serviceModel>

    Please Suggest me what changes i will make in it.

    Regards

    Ashish


    Ashish

    • Moved by Bob Wu-MT Friday, February 22, 2013 10:52 AM
    Thursday, February 21, 2013 12:42 PM

Answers

All replies