Impact 2023 (Dynamic Constraints Edition) release is available for download, bringing with it a host of new features. Available here.

HTTP Response Code 417: Expectation failed

PROBLEM:  HTTP Response Code 417: Expectation failed.
Example: HTTP Response Code 417: Expectation failed.


SOLUTION:
Some proxy servers interfere with the HTTP packets sent between client and servers on a network. The .Net HTTP layer adds an 'Expect: 100-Continue' header that some servers choke on and return a 417 error. The solution is to configure the \Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config file and merge the following configuration into the XML.



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

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

You may like to read -