.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

WCF Service Host cannot find any service metadata.

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

 I keep getting the error message below in my service and need help fixing this please. 

System.InvalidOperationException: The contract name 'IMetadataExchange' could not be found in the list of contracts implemented by the service QuestionService.  Add a ServiceMetadataBehavior to the configuration file or to the ServiceHost directly to enable support for this contract.

   at System.ServiceModel.Description.ConfigLoader.LookupContract(String contractName, String serviceName)

   at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress)

   at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection)

   at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, String configurationName)

   at System.ServiceModel.ServiceHostBase.ApplyConfiguration()

View Complete Post

More Related Resource Links

Cannot register a service type without attaching the source assembly to the host process

I'm wondering if there is any way I can register a service type without attaching the source assembly to the host process. When I register the service type, the source assembly (which has the type) cannot be written.   I appreciate your attention.. 

Cannot find Manage services under Service Application of Central admin

We have Intranet solution based on SharePoint 2010 small farm. Somehow we don't see Manage services on server under the Service Applications in the central admin. Portal seem to work otherwise fine. When we opened the page to browser http://servername:14082/_admin/Server.aspx we received error: Access denied. We have tried to login with Admin, SP_Farm and SP_Admin user, but access denied every time. I checked who have Full user rights in the Central admin. It is SP_Admin Admins of the Sitecollection is SP_admin and Administrator. Why this happens?Kenny_I

How to Find out Windows service application path from Code ?

Dear frnds, Could you please help me to find out the path of  windows serivce exe ( application path ) from code?   Regards. Sajid P K  

SP2010- Creating an Index server which will host all the Service applications

Guys, Current Environment : 1 Sql server 2008 R2 and 1 SharePoint 2010 Server OS : windows server 2008 all 64 bit (goes without saynig) For better performance i want to seperate out Service application ( expecially Search Service application) to another windows server while keeping the existing one as a WFE hosting CA as well. From the little documentation i found i am creating an Index server(with out CA on it) 2 questions here : 1. Is this the best way to optimize my farm? 2. Is there any online documentation or any knd of link that woudl describe how to set up the index server. thanks in advance. Sameer  

Could not find service of type 'TrainingApprovalSiteWorkflow.ITrainingSiteCreationService

System.InvalidOperationException] = {"Could not find service of type 'TrainingApprovalSiteWorkflow.ITrainingSiteCreationService' through the currently configured services. Consider adding the service to ExternalDataExchangeService."} According to the book I had to add, this to web.config < WorkflowService Assembly = "TrainingApprovalSiteWorkFlow, Version=, Culture=neutral, PublicKeyToken=ec95eb8ee603c598" Class = "TrainingApprovalSiteWorkflow.TrainingSiteCreationService" >   </ WorkflowService > However I am not sure if I did to the correct web.config there are so many I added to inetpub\80\web.config Is it there or some other web.config?www.sharepoint2010blogger.com Follow me on Twitter <<<

The Sanboxed code execution request was refused because the sandboxed code host service was too busy

I am getting following error when I am running my sandbx solution ona virtual machine. "The Sanboxed code execution request was refused because the sandboxed code host service was too busy to handle the request" I verified  in central admin that my  Usercode service is already running. I also tried to run below script using powershell. $acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $person = [System.Security.Principal.NTAccount]"Users" $access = [System.Security.AccessControl.RegistryRights]::FullControl $inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit" $propagation = [System.Security.AccessControl.PropagationFlags]::None $type = [System.Security.AccessControl.AccessControlType]::Allow $rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type) $acl.AddAccessRule($rule) Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl Any pointer would be highly appreciated!!  

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?

No protocol binding matches the given address ''.

I am getting this error whenever I tried to open the svc file in the browser using the Visual Studio 2008. The puzzling part is the localhost address being interpreted as ' '. What are should I look for in order to troubleshoot this problem?Exception Details: System.InvalidOperationException: No protocol binding matches the given address ''. Protocol bindings are configured at the Site level in IIS or WAS configuration. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: No protocol binding matches the given address ''. Protocol bindings are configured at the Site level in IIS or WAS configuration.][ServiceActivationException: No protocol binding matches the given address ''. Protocol bindings are configured at the Site level in IIS or WAS configuration.] System.ServiceModel.AsyncResult.End(IAsyncResult result) +4413209

How to use single windows service to host multiple WCF Services instances (Each instance of WCF is i

How to use single windows service to host multiple WCF Services. I have a mutiple instance of same WCF service in different folder, each instance has unique service name and port. WCFService has reference to Reg-Free COM Reference, i have Native.WCFService.manifest in each folder. Ex: WCFService1 is in "C:\WCFService01\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config WCFService2 is in "C:\WCFService02\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config Now i need host above services from single Windows Service. I am trying to create AppDomain for each above WCFService Instance from Windows Service and then host. Its working if i register COM dll in the server using regsvr32, but when i un register COM dll, i am getting unable to load COM component .... This looks like AppDomain is not loading COM DLL and Manifest files. Its looks strange but we need it in this way because we have production and test environment in the same server. Everything works fine if create a seperate Windows Service for each WCFService Instance, but my manager wants single Windows Service :). Any help whould be really appreciated.  ravi kumar reddy

host and consume wcf rest service in web project in single solution

I have  create a solution which have multiple class library project and a web application Like Web(UI),BL,DAL etc. I have also add a WCF REST starter kit Collection project in the same Solution.WCF Rest API is working fine if I host it on IIS but i want to consume this in my web project without using IIS. Is this possible? if yes then what will be the URI  for my WCF Rest services? Add service reference is also not working because WSDL is disable in rest.

Bi directional service calls with "n to 1" and "1 to n" servers has host

Hey there.   I've been tasked to find out how to do the following for our company:   We have our ERP (MS Navision) exposed to the net to take orders. So far so good. Now management wants me to integrate our system with 3 other ERPs and 100s to 1000s of clients all having their own networks and sql servers which are completely outside of our "control".   Here's where I have a big problem.  In the "normal" way of things, each of the ERP, installed on each of our 100[0]s of big clients would be calling my services to process orders and whatnot.   However, the first step of our system is to do a search and display inventory.  We want to have complete control has this system is a new flagship product and we can't let other companies duplicate it.  The big sticking points for our clients is that they want us to show THEIR inventory on OUR site.  This happens after a login, but before their servers ever call mine. That means that I have to query their webservices first... 100[0]s of different servers (1 per client allowed on the system).   Now if we had only 2-5 clients I'd know what to do, but how can I have a scalable setup with 100s and possibly 5000+ different clients? 

Suspend / Resume Instances within Workflow Service Host (in Windows Service)

We are hosting WF 4 worklfow instances within a Windows Service that uses the Workflow Service host container.   On the Windows Service OnStart we start the workflow service host (w/ multiple WCF endpoints such as start workflow instance, cancel workflow instance, poll workflow instance status, etc.) and these endpoints create or work on one or more long running workflow instances.     My question is, if a user attempts to stop the Windows Service while workflow instance(s) are running, what is the best way to manage this scenario.   Our inclination is to persist these workflows (using sql persistence) and then on the next start of the Windows Service, resume these workflow instances and allow them to continue to completion.    In OnStart, we have a handle to the Workflow Service host.    How can we iterate through all the active workflow instances in OnStop and then in OnStart, resume these after the workflow service host is opened and running?   Are there are any methods of managing this scenario?    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?


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