Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6911237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:55:35+00:00 2026-05-27T08:55:35+00:00

When I browse to the .svc I continually get the error: Metadata publishing for

  • 0

When I browse to the .svc I continually get the error: Metadata publishing for this service is currently disabled.

I have followed all of the instructions listed on the error page (added the behavior, referenced the behavior, added the mex endpoint, tried both with and without baseaddress), along with the instructions on MSDN: http://msdn.microsoft.com/en-us/library/ms734765.aspx (pretty much the same, but include the policyversion). I even gutted my config file and only left this stuff – it just doesn’t make any difference at all. I’ve confirmed that the config file is being used (i.e. make a mistake in it, and the error changes).

Section looks like:

<system.serviceModel>
  <services>
    <service name="HoldingService" behaviorConfiguration="SimpleServiceBehavior">
      <host>
        <baseAddresses>
          <add baseAddress="http://localhost/xxxx.cdf.holding/HoldingService.svc"/>
        </baseAddresses>
      </host>
      <endpoint address=""
                binding="basicHttpBinding"
                contract="Xxx.Xxxx.Schema.Service.Cdf.Holding.IHoldingService" />
      <endpoint address="mex"
                binding="mexHttpBinding"
                contract="IMetadataExchange" />
    </service>
  </services>
  <behaviors>
    <serviceBehaviors>
      <behavior name="SimpleServiceBehavior">
        <serviceMetadata httpGetEnabled="True" policyVersion="Policy15" />
      </behavior>
    </serviceBehaviors>
  </behaviors>
</system.serviceModel>

Is there any way at all to fix or debug this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:55:36+00:00Added an answer on May 27, 2026 at 8:55 am

    I managed to resolve this. The problem was name="HoldingService". Even though the .svc is in the same project as the .config, it needed to be fully qualified (i.e. name="Xxx.Xxxx.Web.Cdf.Holding.HoldingService").

    The final code looks like this and works perfectly:

    <system.serviceModel>
      <services>
        <service name="Xxx.Xxxx.Web.Cdf.Holding.HoldingService" behaviorConfiguration="SimpleServiceBehavior">
          <endpoint address=""
                    binding="basicHttpBinding"
                    contract="Xxx.Xxxx.Schema.Service.Cdf.Holding.IHoldingService" />
        </service>
      </services>
      <behaviors>
        <serviceBehaviors>
          <behavior name="SimpleServiceBehavior">
            <serviceMetadata httpGetEnabled="True" />
          </behavior>
        </serviceBehaviors>
      </behaviors>
    </system.serviceModel>
    

    As an aside, the way I ended up resolving this was by using the “Microsoft Service Configuration Editor” (accessible via Tools > WCF Service Configuration Editor in VS2010). I didn’t know this existed and had been hand-cutting the config.

    Thanks Michael for your suggestions – they cleaned the code up a lot.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That Metadata error is what I get when I browse to the service in
When I try to browse my service.svc file,I keep getting this error. I've enabled
I have this url in my browser : https://localhost/service.svc/Add?clientGuid=cf4cca29-e144-4e6a-8485-792f809d84cc &contractId=6 &endSession=False &GroupIds='0,1,2,3,4,5,6,7' &FamilyIds= &PartNumbers=
Am getting this error when I browse to a .svc page in IIS [ie.
I have a simple .Net web service. When I visit the /webservice.svc path in
I have a WCF service installed on my system. I can browse and see
I have a IIS hosted service http://localhost/someProject/services/myservice.svc . Is it possible to somehow make
I am having a problem when I try to browse WCF service (.svc file)
Why doesn't my WCF service provide metadata locally, when I think I have set
I have a ASP.NET MVC 2 application with WCF service defined in it (.svc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.