how configure wcf support faultcontracts where both horde fan same slight controlling net.pipe?
i'm perplexing emanate an in-process section exam use fan interactions controlling net.pipe binding. good wcf use uses faultcontractattribute use operations arrangement illusory faults (wrapped exceptions) metadata. i have fan use endpoints configured thru xml (app.config). however, whenever error thrown, it's only communicationexception "pipe closed", typed error i expecting.
system.servicemodel.communicationexception: there an blunder reading pipe: summons ended. (109, 0x6d).
i attempted adding imetadataexchange endpoint net.pipe, nonetheless didn't work. i also attempted . being perspective mandatory me netsh acl http endpoint. too work.
the tradition difference class:
public category validationexception : applicationexception { }
this latest try during config, nonetheless pumps out "the agreement name 'imetadataexchange' found list contracts implemented service"
any links examples recommendations finished appreciated.
<system.servicemodel>
<client>
<endpoint name="client"
contract="iservice"
address="net.pipe://localhost/servicetest/"
binding="netnamedpipebinding"
bindingconfiguration="netpipebindingconfig" />
</client>
<services>
<service
name="service"
behaviorconfiguration="servicefaults">
<host>
<baseaddresses>
<add baseaddress="net.pipe://localhost/servicetest/"/>
<add baseaddress="http://localhost/servicetest/"/>
</baseaddresses>
</host>
<endpoint
address=""
binding="netnamedpipebinding"
bindingconfiguration="netpipebindingconfig"
name="servicepipe"
contract="iservice" />
<endpoint
address="mex"
binding="mexnamedpipebinding"
bindingconfiguration="mexnetpipebindingconfig"
name="mexuserservicepipe"
contract="imetadataexchange" />
</service>
</services>
<bindings>
<netnamedpipebinding>
<binding name="netpipebindingconfig"
closetimeout="00:30:00"
sendtimeout="00:30:00" />
</netnamedpipebinding>
<mexnamedpipebinding>
<binding name="mexnetpipebindingconfig"></binding>
</mexnamedpipebinding>
</bindings>
<behaviors>
<servicebehaviors>
<behavior name="servicefaults">
<servicedebug includeexceptiondetailinfaults="true"/>
</behavior>
<behavior name="mex">
<servicemetadata
httpgetenabled="true"
httpgeturl="http://localhost/servicetest/mex"/>
</behavior>
</servicebehaviors>
</behaviors>
</system.servicemodel>
Comments
Post a Comment