MEX issues using WCF Test Client over net.pipe

Posted by Beaud. on Stack Overflow See other posts from Stack Overflow or by Beaud.
Published on 2010-05-20T21:57:43Z Indexed on 2010/05/20 22:00 UTC
Read the original article Hit count: 1693

I'm trying to make use of WCF Test Client along with named pipes but I get the following error:

Error: Cannot obtain Metadata from net.pipe://localhost/MyService

Here's my web.config:

<system.serviceModel>
<services>
  <service name="MyNamespace.MyService" behaviorConfiguration="MEX">
    <endpoint address="net.pipe://localhost/MyService"
              binding="netNamedPipeBinding"
              contract="MyNamespace.MyService.IMyService"
    />
    <endpoint address="net.pipe://localhost/MEX"
              binding="mexNamedPipeBinding"
              contract="IMetadataExchange"
    />
  </service>
</services>
<client>
  <endpoint address="net.pipe://localhost/MyService"
            binding="netNamedPipeBinding"
            contract="MyNamespace.MyService.IMyService"
  />
</client>
<behaviors>
  <serviceBehaviors>
    <behavior name="MEX">
      <serviceMetadata />
    </behavior>
  </serviceBehaviors>
</behaviors>

What's wrong? I have tried both net.pipe://localhost/MyService and net.pipe://localhost/MEX.

Any help would be appreciated, thanks!

© Stack Overflow or respective owner

Related posts about wcf

Related posts about wcf-binding