[英]WCF: The remote server returned an error: '(417) Expectation Failed' and '(503) Server Unavailable'
First of all, I've tried a lot in google and statckoverflow, but it still fails. 首先,我在google和statckoverflow中尝试了很多,但仍然失败。 I hope to help me.
希望对我有帮助。 Thank you.
谢谢。
I am getting the following error when call an WCF Service from my WebClient. 从我的WebClient调用WCF服务时出现以下错误。
The remote server returned an error: (417) Expectation Failed .
远程服务器返回错误: (417)预期失败 。
I have tried changing web.config of my WebClient, with the following settings, but still no success. 我尝试使用以下设置更改WebClient的web.config,但仍然没有成功。
<system.net>
<settings>
<servicepointmanager expect100continue="false" />
</settings>
</system.net>
Following this change, I'm getting the error: 进行此更改后,出现错误:
The remote server returned an error: (503) Server Unavailable .
远程服务器返回错误: (503)服务器不可用 。
Note 1: Through the WCF Test Client or another console client works fine. 注意1:通过WCF测试客户端或其他控制台客户端可以正常工作。 Why??
为什么??
Note 2: Server and Web Client hosted in IIS. 注意2:IIS中托管的服务器和Web客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.