내 콘솔 응용 프로그램에서 폴링 이중 바인딩을 구성하는 데 문제가 있습니다.app.config Console App에서 폴링 듀플렉스 구성
<extensions>
<bindingExtensions>
<add name="pollingDuplexHttpBinding" type="System.ServiceModel.Configuration.PollingDuplexHttpBindingCollectionElement,
System.ServiceModel.PollingDuplex,
Version=4.0.0.0,
Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
</extensions>
<services>
<service behaviorConfiguration="PositionBehaviour" name="RabbitMQSub.PositionUpdates">
<endpoint address="positionsDUPLEX" binding="pollingDuplexHttpBinding" contract="RabbitMQSub.IPositionUpdates">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<host>
<baseAddresses>
<add baseAddress="http://localhost:8732/RabbitMQSub/PositionsDUPLEX" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="PositionBehaviour">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
<serviceTimeouts transactionTimeout="10:00:00"/>
<serviceThrottling maxConcurrentCalls="500" maxConcurrentSessions="500" maxConcurrentInstances="2147483647"/>
</behavior>
</serviceBehaviors>
</behaviors>
질문
- 인가 :
또한
Configuration binding extension 'system.serviceModel/bindings/pollingDuplexHttpBinding' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly.
, 여기 내의 app.config에서 미리보기입니다 : 이것은 내가 수신하고있는 오류입니다 콘솔에서 양방향 폴링을 구성 할 수도 있습니다. 앱?
- 그렇다면 무엇이 잘못 되었나요?
감사