我有一個WCF服務,它調用運行在我的開發IIS服務器(IIS 7)上的web服務。我已經將它作爲C#網站項目的服務參考添加了,並且增加了它。WCF服務器錯誤。響應消息的內容類型text/html與綁定的內容類型不匹配
然而,當我嘗試調用任何服務合約,我得到以下錯誤:事先
The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were:
'Blocked Web Page
感謝
BB
@ marc_s謝謝。我可以在瀏覽器中連接到服務。 – BumbleBee 2011-04-28 18:19:16
@BumbleBee>如果您認爲這個問題得到解答,請將其標記爲已回答。 – 2011-05-27 11:33:38