Advertisement

09.10.2007 at 01:21AM PDT, ID: 22817029
[x]
Attachment Details

Issue in WCF named pipes

Asked by rameedev in Microsoft Visual C#.Net, Visual Studio .NET 2005, Microsoft Programming

Tags: found, could, contract, name, wcf

Hi all i am developing a WCF service and my requirement is to create a service with support for named pipes. I created a empty asp.net site and selected the WCFService option from the project templates.

i have given all the configuartion entries and when i try to run it it is throwing me errors saying

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

here is my config file:

<system.serviceModel>
    <services>
      <service behaviorConfiguration="returnFaults" name="DataService">
        <endpoint binding="netNamedPipeBinding" address ="net.pipe://localhost/DataService/Service.svc"
         bindingConfiguration="Binding1" contract="IDataService" />
        <endpoint address="mex"
          binding="mexNamedPipeBinding" bindingConfiguration="" contract="IMetadataExchange"/>
      </service>
    </services>
    <bindings>
    <netNamedPipeBinding>
      <binding name="Binding1" >
        <security mode = "None">
        </security>
      </binding >
    </netNamedPipeBinding>
  </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="returnFaults" >
          <serviceDebug includeExceptionDetailInFaults="true" />
      </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

Please let me know what is the problem. Start Free Trial
[+][-]09.10.2007 at 05:04AM PDT, ID: 19860267

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.12.2007 at 05:33AM PDT, ID: 20064777

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10.12.2007 at 05:37AM PDT, ID: 20064799

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, Visual Studio .NET 2005, Microsoft Programming
Tags: found, could, contract, name, wcf
Sign Up Now!
Solution Provided By: p_davis
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628