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="ret
urnFaults"
name="DataService">
<endpoint binding="netNamedPipeBindi
ng" address ="net.pipe://localhost/Dat
aService/S
ervice.svc
"
bindingConfiguration="Bind
ing1" contract="IDataService" />
<endpoint address="mex"
binding="mexNamedPipeBindi
ng" bindingConfiguration="" contract="IMetadataExchang
e"/>
</service>
</services>
<bindings>
<netNamedPipeBinding>
<binding name="Binding1" >
<security mode = "None">
</security>
</binding >
</netNamedPipeBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="returnFaults" >
<serviceDebug includeExceptionDetailInFa
ults="true
" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Please let me know what is the problem.
Start Free Trial