.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Metadata publishing is disabled

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :WCF

Hello there,

Im going crazy with my first WCF development. I have been working fine couple of minutes back before service died again. Meta data publishing is disabled. Here is my service config




View Complete Post

More Related Resource Links

Metadata publishing for this service is currently disabled Problem under IIS7



I am struggling with an issue that I haven't seen before, at least not without a simple resolution. I have seen numerous articles about this issue but I haven't found one that actually gives a solution that works and its really becoming a royal pain.

I am getting the message, "Metadata publishing for this service is currently disabled" when attempting to host my service in IIS7 on windows 7. I have only seen this problem since I migrated to VS2010 using the .NET 4 Framework.

I have adjusted my web.config file in effort of resolving the problem but to no avail. Anyone here able to help me out on this one? I am totally exhausted on going in circles for this issue.

Here is my code:

<?xml version="1.0"?>
    <compilation debug="true" targetFramework="4.0" />
        <behavior name ="MapServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>

Metadata publishing for this service is currently disabled.


I have tried to do what some have suggested to have the metadata publishing enabled but cant figure this out. Could anyone assist in what i could be doing wrong here? Ive read a few blogs and nothing seems to work. Im running as an admin, Win 7, VS2010 + all updates. My Web.Config file under my ASP .net site is:

<?xml version="1.0"?>
  <compilation debug="false" strict="false"

"Metadata publishing for this service is currently disabled" yet again!


I've followed all of the suggestions described in the other Q&As on this subject but so far nothing has worked - I still get the "Metadata publishing for this service is currently disabled" page.  Here is my web.config file:

   <service name="StationCasinos.Workflow.RuntimeService.WorkflowRuntimeService" behaviorConfiguration="StandardBehavior">
      <add baseAddress="http://localhost:6555/EnterpriseWorkflow/MessagingServic

'Metadata publishing for this service is currently disabled' message with WCF service


Whenever I try to add a web reference to the WCF service in my project, I get an error:

'The HTML document does not contain Web service discovery information.
There was an error downloading 'http://localhost/OFTestSite/Service.svc/$metadata'.
The request failed with HTTP status 400: Bad Request.'

When I browse Service.svc directly from the IIS, the page opens with the statement 'Metadata publishing for this service is currently disabled.'

I followed all the steps correctly to make metadata publishing enabled, but still I get the same message and I'm not able to add the web refernce.

Could anyone please help me? 

(I am using VS 2010 Professional on Windows XP machine with IIS 5.1)

Metadata publishing for this service is currently disabled.


I have created a WCF service from VS 2010 and started debugging only after makin changes in web.config file, and is looking like this.

<?xml version="1.0"?>

    <compilation debug="true" targetFramework="4.0" />
      <service name="WCFGettingStarted.Servie1" behaviorConfiguration="MyServiceBehavior">
        <endpoint address="" binding="basicHttpBinding" contract="WCFGettingStarted.IServie1"></endpoint>
        <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
        <behavior name="MyServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>

2010 Metadata Publishing not works as expected

When enabling Metadata Publishing in library settings, used terms that come from managed metadata or enterprise keyword columns should also be published as social tags and used tags should be available on mysite, e.g. in activity list. But that is not the case in my installations. If I link to a used tag, e.g. /tagprofile.aspx?termid=27a8997d-4459-4bae-ad76-bdb2e249fced the tag is found on the tag profile and displayed with name and source (e.g. some taxonomy). But the list of marked items, that used the tag in last days, remains empty. Also the search for all items that are tagged with this term delivers no results. I know that there is security trimming, but I'm the owner of these documents, so this should not be the reason. How to display these taged documents on mysite automatically? For pure social tagging (e.g. by using tags & notes neear like it) it works, but not in case of metadata publishing. Any ideas? Any documentation? That would be great. Thanks in advance, SharePointFrank http://www.layer2.de/en/products/pages/knowledge-management-suite-sharepoint-2010.aspx  

Publishing metadata with relative URI's; why won't it work?



I have some WCF services that are hosted in a Windows Service and I need to publish the metadata. Preferrably, I would like to use one baseAddress for all my services.

So this works;

Uri baseAddress = new Uri("https://localhost:8181/MyInterface");
<snip />
serviceHost.AddServiceEndpoint(typeof(IMyInterface), binding, "");
serviceHost.AddServiceEndpoint(ServiceMetadataBehavior.MexContractName, binding, "mex");
<snip />

I can get the metadata from https://localhost:8181/MyInterface?wsdl

Now, I want to publish the same service using a relative URI;

Uri baseAddress = new Uri("https://localhost:8181");
<snip />
serviceHost.AddServiceEndpoint(typeof(IMyInterface), binding, "MyInterface");
serviceHost.AddServiceEndpoint(ServiceMetadataBehavior.MexContractName, binding, "MyInterface/mex");
<snip />

Now, the service is still 'listening' at

Metadata publishing not available for list


Hello All,

I need a little help. I cannot enable metadata publishing on a list, because this section is entirely missing. I can enable it on a document library, but it does not work: I create a managed metadata column, I tag a document and the used tag does not become a social tag. I ran an incremental crawl, the Social Data Maintainence Job but still the used tag was not included in the social tags.

I know something is wrong, but cannot figure out what.

Thank you,


Publishing the Managed Metadata Service, through a firewall to another AD Forrest - fun and games...


Hi People,

we've got two SP2010 Farms in two separate AD Domains/Forrests, which are connected via a firewall and there is no trust at the AD level.

Both farms consist of an App Server (Central Admin and all Service Applications) and a WFE (Content plus Query/Index role).

The Managed Metadata Service on Farm A is published through to Farm B and so we've had to open up ports through the firewall so the App Server in Farm B can talk to the SharePoint Web Services on Farm A (32843, 32844 and 32845) and that all appears to be working properly, even to the extent that the Content Deployment from Farm A to Farm B is also working and the managed properties in the content are all being mapped/managed correctly.

However I'm now seeing requests by the the WFE in Farm B to access the topology service running on WFE in Farm A! Hold on!
As it was, I already had to allow both the App Server and the WFE in Farm B to be able to access the SharePoint Web Service ports on the App Server in Farm A, and now I have to do the same for the WFE in Farm A?!?!? That can't be right.

Isn't the whole point of having proxy services, Central Admin and an App Server (hosting all the services) that you only have to open up a single server? Why does every machine in one farm have to know about every machine in another farm?

Talk about a firewall mana

Publishing SQL Server Database using Publishing Wizard : Tips & Tricks

We can use SQL Server Publishing Wizard to deploy our local Database to remote hosting server/production server.This feature is available in SQL Server 2008/VWD 2008.

Below is the complete step by step guide of this process.

"Type ASP.x is not defined" error for dynamic user control when publishing updateable


I have a user control (ContainerCtrl) which programmatically instantiates another user control (SimpleCtrl) in OnLoad. It builds and runs fine, but when I publish it I get the error "error BC30002: Type 'ASP.SimpleCtrl' is not defined." (If I publish without the "updateable" option there's no error, but I need the site to be updateable.)

I assume this has to do with the particulars of how the assembly(ies) are built for the different compiler options. My question is, how can I get it to work properly for "updateable" publishing?

VS 2008 / .NET 3.5 sp1

The code follows (web.config is the default from Visual Studio).

Many thanks, Dave


<%@ Control Language="VB" ClassName="SimpleCtrl" CodeFile="SimpleCtrl.ascx.vb" Inherits="_SimpleCtrl" %>

    Simple control


Partial Class _SimpleCtrl
    Inherits UserControl

    'Nothing to see here.

End Class


<%@ Control Language="VB" CodeFile="ContainerCtrl.ascx.vb" Inherits="_ContainerCtrl"

Compiler Error Message : CS0006: Metadata file 'System.EnterpriseServices.dll' could not be found


I get this error when i Debug my web application....


I followed these steps.,

  • Ended the aspnet_wp.exe process in the Windows Task Manager
  • Then deleted the application`s folder in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
  • Then started Visual Studio 2008 again

I also rebooted my system but no use....

Plz help !

Extreme ASP.NET: Model Validation & Metadata in ASP.NET MVC 2


Scott Allen shows how to improve your user input validation with new features coming out in ASP.NET MVC 2 that easily allow validation on both the client and server.

Scott Allen

MSDN Magazine March 2010

"Oslo" Basics: Build Metadata-Based Applications With The "Oslo" Platform


We introduce you to "Oslo" and demonstrate how MSchema and MGraph enable you to build metadata-driven apps. We'll define types and values in "M" and deploy them to the repository.

Chris Sells

MSDN Magazine February 2009

Office Development: Manage Metadata with Document Information Panels


Here the author uses Document Information Panels in the Microsoft 2007 Office system to manipulate metadata from Office docs for better discovery and management.

Ashish Ghoda

MSDN Magazine April 2008

Silverlight: Create a Custom Expression Encoder Publishing Plug-In


Laurence Moroney demonstrates how to employ the Expression Encoder plug-in APIs by building and debugging a simple FTP upload plug-in.

Laurence Moroney

MSDN Magazine February 2008

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend