I have WCF service and Silverlight Client. I use PollingDuplexElement.
On server side I have following configuration.
<binding name="DuplexmergencyRegistratorBinding">
<binaryMessageEncoding/>
<pollingDuplex maxPendingSessions="2147483647" maxPendingMessagesPerSession="2147483647" inactivityTimeout="02:00:00" serverPollTimeout="00:05:00"/>
<httpTransport authenticationScheme="Negotiate"/>
</binding>
on Client:
<binding name="BasicHttpBinding_IEmergencyRegistrator">
<binaryMessageEncoding/>
<pollingDuplex duplexMode="MultipleMessagesPerPoll" inactivityTimeout="02:00:00" clientPollTimeout="00:05:00"/>
<httpTransport transferMode="StreamedResponse"/>
</binding>
I get following error: Content Type application/mspd1 was sent to a service expecting application/soap+msbin1. The client and service bindings may be mismatched.
What else should be configured. I spent a lot of time but couldn't find the answer.
最后,我删除了客户端配置,并从代码中配置了ServiceClient。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.