.net - ContractFilter mismatch at the EndpointDispatcher exception in WCF -
i getting error when trying call self hosted wcf service
exception:
system.runtime.remoting.serverexception unhandled user code
message=the message action 'http://schemas.microsoft.com/clr/nsassem/quexsterp.businesscore.interfaces.ioperationservice/quexsterp.businesscore.interfaces#getall' cannot processed @ receiver, due contractfilter mismatch @ endpointdispatcher. may because of either contract mismatch (mismatched actions between sender , receiver) or binding/security mismatch between sender , receiver. check sender , receiver have same contract , same binding (including security requirements, e.g. message, transport, none).
source=mscorlib stacktrace: server stack trace: exception rethrown @ [0]: @ system.runtime.remoting.proxies.realproxy.handlereturnmessage(imessage reqmsg, imessage retmsg) @ system.runtime.remoting.proxies.realproxy.privateinvoke(messagedata& msgdata, int32 type)
service configuration
<?xml version="1.0"?> <configuration> <system.servicemodel> <services> <service name="quexsterp.businesscore.businesslogic.sysadmin.operationservice" behaviorconfiguration="wcfbasichttpbinding.service1behavior"> <endpoint address="" binding="basichttpbinding" contract="quexsterp.businesscore.interfaces.ioperationservice"> </endpoint> <host> <baseaddresses> <add baseaddress="http://bu-06-04:9001/operationservice/" /> </baseaddresses> </host> <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange"/> </service> </services> <bindings> <nettcpbinding> <binding name="tcpbindingconfig" maxbuffersize="5242880" maxreceivedmessagesize="5242880"> <readerquotas maxstringcontentlength="5242880" /> <security mode="none" /> </binding> </nettcpbinding> </bindings> <behaviors> <endpointbehaviors> <behavior name="web"> <webhttp/> </behavior> </endpointbehaviors> <servicebehaviors> <behavior name="wcfbasichttpbinding.service1behavior"> <servicemetadata httpgetenabled="true"/> <servicedebug includeexceptiondetailinfaults="false"/> </behavior> </servicebehaviors> </behaviors> </system.servicemodel> <startup> <supportedruntime version="v4.0" sku=".netframework,version=v4.0"/> </startup> </configuration>
in client code
ioperationservice myobj = (ioperationservice)activator.getobject(typeof(ioperationservice),"http://bu-06-04:9001/operationservice/"); return myobj.getall();
getall method causes exception
Comments
Post a Comment