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


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

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

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

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)




View Complete Post


More Related Resource Links

Metadata publishing for this service is currently disabled Problem under IIS7

  

Hi,

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"?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
  </system.web>
  <system.serviceModel>
     <behaviors>
      <serviceBehaviors>
        <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"?>
<configuration>
   <system.web>
  <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:

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

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"?>
<configuration>

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

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

Design: Place XML Message Design Ahead of Schema Planning to Improve Web Service Interoperability

  

Web Services are all about exchanging data in the form of XML messages. If you were about to design a database schema, you probably wouldn't let your tool do it for you. You'd hand-tool it yourself to ensure maximum efficiency. In this article, the author maintains that designing a Web Service should be no different. You should know what kind of data will be returned by Web Service requests and use the structure of that data to design the most efficient message format. Here you'll learn how to make that determination and how to build your Web Service around the message structure.

Yasser Shohoud

MSDN Magazine December 2002


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.

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. 

SharePoint 2010 search service always been disabled

  
am working with SharePoint 2010 Enterprise edition with windows server 2008 R2, and I installed SQL Server 2008 R2 in the same machine.... my problem is that the OS always disable both services of Sharepoint Server Search 14 and Sharepoint Foundation Search V4, I tried all the ways to make them automatic and always started but i will works for 10-15 minutes them disabled again... I run sharepoint configuration wizard many times if it could to solve this issue but it sucessed with no errors but the search service issue still there... whats going wrong??

Update Managed Metadata Field with using Lists.asmx service

  
Hello! I am trying to update Managed Metadata Field with using Lists.asmx. I know that I must use this format WSSID;#VALUE|GUID. But I don't Know how I can get WSSID and VALUE Guid! Can I get them with using lists.asmx! Thanks!!

Is it possible to implement your own version of the Managed Metadata Service?

  
Hi, It would be nice to provision a new instance of the Managed Metadata Service where the service is not implemented by Microsoft.SharePoint.Taxonomy.MetadataWebServiceApplication, but a custom provider. Is it possible to expose your own service as a Managed Metadata Service?

Windows Service Suddenly Stops with no logged message

  
Background: I have a windows service which hosts some wcf services and multithreading has been used there heavily. I'm using Enterprise Library to log messages, handled and unhandled.  AppDomain.CurrentDomain.UnhandledException += OnUnhandledException;  private static void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)         {             Logger.Error("An unhandled exception has been thrown.", (Exception)e.ExceptionObject);         } Problem: The problem is that randomly my windows service stops on production and I get no log messages saying that the services stopped or what exception details. Question: I haven't created any new AppDomain explicitly. Shouldn't all the threads run in the same default CurrentDomain? if so, why nothing gets logged when the service stops suddenly? Thanks in advance.    

setting message sizes for wcf web service

  
Hi.    I am working on silverlight application that communicates with wcf web service. I have function on service side that takes string as parameter. like:    [OperationContract ]          bool DoSomeServiceWork (string imputText );    when i call this function (using auto generated proxy) asynchronously with string smaller than certain size (around 1000 chars) everything works fine.    As soon as string size gets larger, i get exception "The remote server returned an error: NotFound ."    Now it seems to me that problem is in message size so i tried to change maximum buffer, maximum message size everywhere in the confing files i could find them, but nothing helps.  It come to me that obviously i don't know what I'am doing so can someone help me out here ?    (i found in different forums many posts regarding maximum message size but nothing helped, most of them are suggesting changing values in various confing files but it seems it doesn't work, and there is nowhere explanation what those numbers actually change, because its obviously not parameter size for a function) I'm completely missing something out here. sending few kb to web service suppose to be easy, and I'm getting crazy here.    btw can somebody please give complete instructions

Sharepoint 2010 - The Managed Metadata Service or Connection is currently not available. The Applica

  
So I've already installed hot fix http://support.microsoft.com/kb/976394.  Rebooted server and I still get this message.  The account being used is part of local adminstrators group and has full connection permissions for managed metadata service.  Is there anything else I'm missing or needs to be done?

Managed Metadata Service or Connection is currently not available

  
In service applications this is listed as stopped. Under services on this server it is listed as started. I get the folowing message when I open properties from the service application then click 'ok' Object reference not set to an instance of an object.   Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: 10df60d7-a00e-4bb2-9d5c-156a5a15c5f1 Date and Time: 9/13/2010 4:52:25 PM   I have all required KB' hotfixes, the account being used to connect to SQL is working for all other services, the account has local admin rights. THis is a fresh install. I get the 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' When I go into Term Store Management   Any help on this?

Setting message sizes for wcf web service

  
Hi.    I am working on silverlight application that communicates with wcf web service. I have function on service side that takes string as parameter. like:    [OperationContract ]          bool DoSomeServiceWork (string imputText );    when i call this function (using auto generated proxy) asynchronously with string smaller than certain size (around 1000 chars) everything works fine.    As soon as string size gets larger, i get exception "The remote server returned an error: NotFound ."    Now it seems to me that problem is in message size so i tried to change maximum buffer, maximum message size everywhere in the confing files i could find them, but nothing helps.  It come to me that obviously i don't know what I'am doing so can someone help me out here ?    (i found in different forums many posts regarding maximum message size but nothing helped, most of them are suggesting changing values in various confing files but it seems it doesn't work, and there is nowhere explanation what those numbers actually change, because its obviously not parameter size for a function) I'm completely missing something out here. sending few kb to web service suppose to be easy, and I'm getting crazy here.    btw can somebody please give complete instructions
Categories: 
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