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

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

Metadata publishing for this service is currently disabled Problem under IIS7

Posted By:      Posted Date: October 01, 2010    Points: 0   Category :ASP.Net


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"/>

View Complete Post

More Related Resource Links

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"/>

Publishing a WCF service in VS2010 and IIS7

OK, there is probably a really simple answer to this, but I have the flu and can't think straight.I am taking advantage of being out sick by downloading VS2010RC and playing around with it.I created a simple WCF service (my first in this foundation, but not my first service).  Its a redo of an existing asmx service I created a while ago.  I commented out all the processes, and am simply trying to publish the service to my local IIS7 to see the discovery working.I have setup a new site to host the service ( I tried using Default as well, with the same results).  I right click the project in VS and select publish.  It is prompting me for a login even though the site is setup for anonymous access.  If I try to use WebDeploy, it can't find my site, and if I use FileSystem, it give me a simple "Publish failed" with no details.Can someone point me to a tutorial or something that describes the publish process in VS2010 or give me some leads as to what setup needs to happen either in VS or ISS to let me publish?  Thanks. 

Metadata publishing is disabled


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




Problem with getting client's IP address in WCF service on IIS7



I have deployed a WCF duplex service on IIS7 that gets the client's IP address and based on that if the IP address repeats, the client is not given access to service. The problem is that when I deploy it on IIS7 and try to access it from another PC on LAN, it identifies the new PC having the same IP address as the one that the service is deployed in(just for testing purpose, I am returning the retrieved IP address to client), and So, I am not able to access the service from another PC. 

Can anyone help me with this?



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

Managed Metadata Service Application Problem



I've been trying for a whole day to configure managed metadata services on a windows server 2008 R2 environment but I keep getting this error:

The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started. Please Contact your Administrator.

I've tried searching for a resolution and here's what I got:

  1. Change the application pool account / Check that the pool is running.
  2. Download hot fixes KB981002 and KB976462.
  3. IISRESET / Restart the server.
  4. Ensure that Managed Metadata service is running.

The third solution worked for me in my development environment which is Windows 7, but I couldn't get it to work in Windows server 2008 R2 which is the production environment.

Any help would be appreciated :)

Problem to obtain client IP on web service



I'm having problems to obtain the client IP on web service. Here's my scenario:

One server with Windows 2003, hosting the web service using .Net Framework 2.0, with IP and host name ServerTransaction.
Other server with Windows 2003, hosting a web application using .Net Framework 2.0, that consuming the web service on  ServerTransaction, with IP and host name ServerApplication.
Many other computers on the local network (IPs:,,, ...) acessing the web application on ServerApplication.

On the code of the web service I've tried to use HttpContext.Current.Request.UserHostAddress or HttpContext.Current.Request.ServerVariables("REMOTE_ADDR") or HttpContext.Current.Request.ServerVariables("HTTP_X_FORWARDED_FORR"), but always I can only get the IP of ServerApplication (

Any idea or tip?

Thanks and sorry for my bad english.

problem compiling web service


Using Visual Studio 2010.

I created a webservice GetDemographicData asmx, GetDemographicData asmx.cs and then used wsdl to create a proxy, then used csc.exe to create dll.

first time when I generate proxy, it looks and works fine, but when I make some changes to my webservice and regenerate proxy the following problems occur:

1.I lost the function: public DataSet Get_GetDemographicData(string CaseNum, int Version)
2. The namespace changed to my-labs

Why?? Please see my code below:

Any help is appreciated. Thanks.

<%@ WebService Language="C#" CodeBehind="~/App_Code/GetDemographicData.cs" Class="GetDemographicData" %>
GetDemographicData.cs was created under AppDataas follows:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;

/// <summary>
/// Summary description for GetCurrentReportVersion
/// </summary>
[WebService(Namespace = "http://localhost/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, u

problem in consuming WCF service through Window application


I have a silverlight application and WCF service all made in VS 2010 , i had hosted my site to web server which contain Window 2008 and IIS 7.0

now the problem is i have another application which is a window application developed in VS2008 , when i try to add the service reference it gives me error


The document at the url was not recognized as a known document type.

The error message from each known type may help you fix the problem:

- Report from 'DISCO Document' is 'There was an error downloading 'http://dev_qa.emspa.com/HRDev3/Service.svc?disco'.'.

  - The request failed with HTTP status 400: Bad Request.

- Report from 'WSDL Document' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from '' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

- Report from 'XML Schema' is 'The document format is not recognized (the content type is 'text/html; charset=UTF-8').'.

Metadata contains a reference that cannot be resolved: ''.

Content Type application/soap+xml; charset

Problem with passing an Image as binary through web service



I have a web service that is accessed by a windows forms application and receives updates like facility name, address, image etc. Everything works fine except the image data is not being passed to the windows app. I am saving the images in database on both sides, so when I pull it from the server I use the following code

if (!reader.IsDBNull(floorPlanOrdinal))

facility.FloorPlan = (byte[])reader["FloorPlan"];

I can see the facility.FloorPlan Dimentions as 103840 when I debug this method which means that the data is pulled from the database fine.

On the forms side though the dimentions become 0, all other values pass fine except this. Here is the facility property in the web service on server side.

using System;

using System

Cannot get service reference for Net.tcp service hosted in IIS7

HiI've got a service that I want to host in IIS7. The service runs over net.tcp (currently without security), but I am unable to create a service reference to it, or call it, using the net.tcp protocol. My event log is populated with lots of errors related to ASP.NET and System.ServiceModel, relevant services are installed and running (net.tcp port sharing service and net.tcp listener adapter).O/S : Window7 RTMDevStudio: 2008I publish the webservice to IIS7 and I get a valid page when navigating to the published .svc file (which tells me to use svtutil.exe and point it at the net.tcp endpoint).For that, I get this error :    The message could not be dispatched because the service at the endpoint address 'net.tcp://gedm-desktop.profiledc01.appdevelop.local/ManageAVMEP/ManageAVMAgent.svc/mex' is unavailable for the protocol of the address.Googling the problem leads me down several blind alleys :(I cannot determine what is causing the net.tcp listener to keep stopping? Everything is fine if I use the wsHttpBinding.Any tips or pointers to a course of action would be appreciated.ThanksGed My event log is full of errors (here is a sample) :-------An error occurred while trying to listen for the URL '/LM/W3SVC/1/ROOT/ManageAVMEP'. This worker process will be terminated. Sender Information: net.tcp Exception: System.ServiceModel.WasHos

With Anonymous access disabled, is there any way to use an AJAX-enabled WCF Service?

I have a website where anonymous access is disabled but I want to user an ajax-enabled WCF service. Configuring the service's binding security to use "TransportCredentialOnly" with clientCredentialType="Windows" seems like the obvious thing to do; indeed, many posts in various places suggest this approach. Unfortunately, however, it doesn't work. I always get the error "Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service." How can I configure the service to function correctly. I'm running IIS 7.5 with .Net framework 4.0. Thanks.

Visual Studio 2010, MVC2.0, IIS7, .NET4 deployment problem

I have a problem where I can get an MVC2.0 application using .NET3.5 running in IIS, but when I upgrade it to .NET4.0, the browser just reports error 500 Internal Server Error. The problem is easy to replicate as follows.  Firstly, to show it works with .NET3.5: Create a new MVC2.0 application in Visual Studio 2010, using the inbuilt starter template. Run the application using the development server, and the Home & About pages display fine. Publish the application to a directory. Copy the directory to a subdirectory under inetpub/wwwroot on my Vista computer, running IIS7 Create a new application in IIS Manager & select the DefaultAppPool (integrated pipeline) Browse the application and Home & About pages are displayed. Then the problem I have is after upgrading to .NET4.0: Change to .NET4.0 for the project in Visual Studio Build & this runs fine with the development server. Publish the application & set up IIS as before, except choosing the application pool ASP.NET v4.0 (integrated pipeline) Browse the application, and I get the 500 Internal Server Error I'm guessing there is some extra configuration required - can anyone help? I've deliberately used the default MVC installation to eliminate any variables caused by my programming .. Thanks in advance, Steve

Problem Integration SQL Reporting Service 2005 and SharePoint 2007

Hello, I'm trying to make our SQL Reports available on our SharePoint report center. I have SQL 2005 (sp3) report server that resides on a different server than our SharePoint 2007 server. So in our SRS Configuration Tool, we changed the database mode for SharePoint integration (before, we only had it in native mode), so we created a new database for this SharePoint Integration type. Next, I installed the Report Server Add-in for SharePoint 2007 server and it was successful. However when configuring the Report Server, we got stuck at the step "Grant Database Access". For some reason we keep getting error message "Named instance not found" We already installed Service Pack 3 on the Report Server... I heard that the problem is because the mismatched version between the Report Server Add-in in SharePoint and the SQL RS version... but I don't think this is the case for us. Do we need to install WSS on our Report Server too?     Another question: We already integrate our Report Server with Microsoft Dynamics CRM 4.0. However I see that when the Report Server is in the SharePoint Integration mode, all the reports in CRM don't work (because Report Manager is no longer available in this mode). Do you think it would be the best practice to install a copy of Report Server instance in our SharePoint 2007 server? Thank you, greatly appreciate all your hel
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