我有WCF用戶爲MSMQ安裝爲Windows服務。我也附加了一個IErrorhandler以及所以我需要使它OneWay =虛假服務合同。現在,當我啓動Windows服務時,我正在冒出錯誤: -獲得合同要求雙向(要求回覆或雙工)錯誤
服務無法啓動。 System.InvalidOperationException:合同需要TwoWay(請求回覆或雙工),但Binding'MsmqIntegrationBinding'不支持它或未正確配置以支持它。 在System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo東西,ServiceHostBase ServiceHost的,開放的listenUri,ListenUriMode listenUriMode,布爾supportContextSession,IChannelListener &結果)
我是新來的WCF .. 請幫助me.how配置MsmqIntegrationBinding for duplex。
我的app.config部分低於: -
<msmqIntegrationBinding>
<binding name="OrderProcessorBinding" maxRetryCycles="0" receiveErrorHandling="Move"
receiveRetryCount="3" retryCycleDelay="00:00:59">
<security mode="None" />
</binding>
</msmqIntegrationBinding>