WCF metadata can not find RRS feed

  • Question

  • Hi,

    I have a WCF service library project. I tried to run this project and the in-built WcfHost raises an error saying "WCF service host cannot find any metadata.."

    Thursday, April 30, 2015 2:40 PM


  • Hi Andrewsys,

    If you are using the http WCF Service, please make sure that you have added the following in your config file:

    1) Set the service behavior for metadata:

         <behavior name="MyMetadata"> 
            <serviceMetadata httpGetEnabled="true" />

    2) Reference that service behavior in the service config

    <service name="wcfLibrary.MyService" 

    3) Or you can try to add an endpoint for MEX (metadata exchange)

        <endpoint address="mex"
                  contract="IMetadataExchange" />

    If the above still can not help, please try to post your config file in here.

    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.

    • Marked as answer by Andrewsys Thursday, May 7, 2015 4:44 AM
    Friday, May 1, 2015 2:24 AM