簡體   English   中英

例外:內容類型application / mspd1已發送到需要application / soap + msbin1的服務

[英]Exception: Content Type application/mspd1 was sent to a service expecting application/soap+msbin1

我有WCF服務和Silverlight客戶端。 我使用PollingDuplexElement。

在服務器端,我有以下配置。

<binding name="DuplexmergencyRegistratorBinding">
   <binaryMessageEncoding/>
   <pollingDuplex maxPendingSessions="2147483647" maxPendingMessagesPerSession="2147483647" inactivityTimeout="02:00:00" serverPollTimeout="00:05:00"/>
   <httpTransport authenticationScheme="Negotiate"/>
 </binding>

在客戶端上:

<binding name="BasicHttpBinding_IEmergencyRegistrator">
  <binaryMessageEncoding/>
  <pollingDuplex duplexMode="MultipleMessagesPerPoll" inactivityTimeout="02:00:00" clientPollTimeout="00:05:00"/>      
  <httpTransport transferMode="StreamedResponse"/>
</binding>   

我收到以下錯誤: 內容類型application / mspd1已發送到期望應用程序/ soap + msbin1的服務。 客戶端和服務綁定可能不匹配。

還有什么應該配置。 我花了很多時間,但找不到答案。

最后,我刪除了客戶端配置,並從代碼中配置了ServiceClient。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM