« javascript(js)使用eval方法加密过的函数解密方法“代码运行、复制、另存为”功能插件发布 »

c# The remote server returned an error: (417) Expectation failed 错误解决

密陀僧发布 技术 2009年6月24日 次浏览
该错误可能是客户端网络环境引起的(don't support "100 continue" expectation),在程序的配置文件中加上下面部分试试。
我也遇到了这个问题,加上这段代码后问题解决。

<configuration>
  <system.net>
    <settings>
      <servicePointManager expect100Continue="false" />
    </settings>
  </system.net>
</configuration>

转载请注明:转载自漱风斋[ http://0e2.net/ ]

本文链接地址:http://0e2.net/post/1184.html

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Copyright 2009-3000 0e2.net. Some Rights Reserved.  Powered By Z-Blog.