.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

svcutil /metadata - how to export metadata for service contract that has generic type

Posted By:      Posted Date: September 25, 2010    Points: 0   Category :WCF


I am using svcutil /metadata to get metadata for a WCF service project assembly, the service class implements the IChildServiceContract below, and the IChildServiceContract interface implements a base interface which accept a generic type.

public interface IChildServiceContract : IServiceBaseContract<string>

I can generate metadata for IChildServiceContract , I am curious and also want to try generate meta data for base interface, an error come up which seems have problem with the generic based contract:

There was an error exporting the contract loaded from the type: xxx.xxx.xxx.IServiceBaseContract`1

Is it possible to generate metadata in this situation?


Thanks in advanced


View Complete Post

More Related Resource Links

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?

Weird Issue with the MOSS Search : FileExtension metadata object type instead of string

Hello, We 've got a strange issue with the search and especially with the FileExtension metadata. when we make a query on the search engine, we receive for the FileExtension metadata an unexcpected result. here is a printscreen showing the issue. http://cid-53eee937847a625e.photos.live.com/self.aspx/Public/Untitled.jpg as you can see the Type of the FileExtension is object and it should be string and I checked the type of the object and it's System.String[] the element at the index 0 contains the value! what's wrong ? thx in advance

How to configure Metadata Properties for Publising Content Type

Hi, I have created content type hub and sucessfully published new content type to site collection. I have added it to document library, I want to configure Metadata Properties (Mapping to crawled properties) for SharePoint search, how i can do that?? I can't find any site columns which i defined in content type hub in crawled properties. My question is, can we configure metadata properties if we use publising content type (content type hub is on same web application) ??. Thanks,  

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?

Proxy Managed Metadata Service Error

Hi I've deleted my web apps installed a language pack and then I've created new web apps and site collections on them with the new language (not reinstalling all again). On my portal I've made a Content type based on Document Set with a few Custom columns based on some taxonomy created before. My problem is that the new Content type was created like one which was created before deleting my web apps (the custom columns are the same), and now when I publish it the other web app is importing the old content type first (FROM WHERE I DON"T KNOW) and when tries to import the new one (which has a column with the same name) the Proxy Managed Metadata Service gives an error 'Filed internal name conflict.....' If I click on managed Metadata Service url http://portal/_layouts/mngctype.aspx  the old Content type of course that it's not present. Where should I search for it to delete it ? Thank's  Sorin Sandu

Managed Metadata Service - No EMM application proxy can be found



I have Managed Metadata Service configured with the default language German and the target Content Hub it also in German. When I try to publish a content type i got this error "cannot check for changes because no emm application proxy can be found". Any ideea?


The Managed Metadata Service or Connection is currently not available.

I've been trying to create new Managed Metadata services but get this error when trying to manage them:
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 checked that the application pool that the Metadata service uses is running and that the account it's running under is in the farm administrators group. I've checked that the WCF hotfix is applied on the system by re-downloading KB971831 (I have Windows 2K8 SP2) and trying to run it again but it says it doesn't apply to my system (as I had installed it before installing SharePOint)

I'm not sure what else to do - can anyone give any pointers?


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

Managed Metadata Service



I have some problems configuring the Managed Metadata Service and help would be appreciated.

I managed to add a new group into the Term Store Management Tool, with my own personal structure, not a problem here.
But when I go to a document library or list and I want to make a new colomn of type Managed Metadata, then the problems begin. The notification 
"The required feature is not enabled for this column type." appears in the manage term set search box, but I cán search and find my defined taxonomy. When I try to OK this, following message (under this manage term set box) appears : "The Taxonomy feature (Feature ID "73EF14B1-13A9-416b-A9B5-ECECA2B0604C") has not been activated.".

I'm not able to find this specific feature and have every other feature necessary for the managed metadata options turned on.

Anyone has an idea of what went wrong here?


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"

Web Part property of type "Managed Metadata"


I want to build a custom web part where the user filters the results by selecting a term from a managed metadata property. I want this property to appear in that "Edit Web Part" property panel.

I know if I want to expose a simple string property, I just add the following attributes:




WebDescription("Select the category to filter your results.")]

public string Filter{





How do you do the same thing...but with a managed metadata datatype?

(Not to confuse the question...but the managed metadata datatype I want to show is defined as a Site Column. How can I expose that to a web part property?)


Any help would be appreciated.


SharePoint 2010 Search Service - does not escape forbidden signs in Managed Metadata fields



I´m using SharePoint 2010s Search Service to get items from a list. In the list I have managed metadata field for Item. When I search on Item "Item 1 & 2" I get xml that is incorrect. SharePoint does not escape the &. (The mapping is correct so when I search on an item not containg & it returns correct xml.)

But if I in my description field writes "A description & some more text" then & is escaped.

Anyone seen this before? Is there some way to configure the search service to escape forbidden signs to return none broken xml?


"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

Sharepoint 2010 Missing Managed Metadata Service


According to the following MS article, the Tags feature is linked to the Managed Metadata Service, which is required to use Tags. For some reason I cannot find this feature as described in the article where it specified Managed Metadata Service is located in the Application Management section. What should I check to make sure this feature/service can be enabled?



Has the Metadata service been gutted?


We have been working with the managed meta data service all the way through the Sharepoint 2010 beta cycle and have created a number of taxonomies to help us manage the system data and create a sort of VIN diagram to allow us to execute searches and always retrieve all the specific information we've needed to populate all the webparts on our pages.  This system has content creation in it and a publishing aspects (goes from private collaboration to public side consumption).

We've been making great progress and were really looking forward to rolling out this new system utilizing a fully faceted taxonomy and navigation.  It has reduced our coding and management greatly.  This was looking really good, that is, until we got the RTM and see that MS has basically deprecated Managed meta data in office clients and essentially shot the product in the foot limiting the value of the managed meta data system.  As you can tell, I'm a little (understatement) t-offed at this.  We put a lot of work into it and were able to create a really cool dynamic system that the client was loving.


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