Expect 100 timeout on WS calls.

Noticed that a service call was timing out on a new project while the same call was fine on an older project.

By comparing the requests in Fiddler I noticed that the failing one was adding Expect: 100-Continue to the header.

Adding the following to the web.config fixed it:

<!-- prevent WS timeout-->
<system.net>
<settings>
<servicePointManager expect100Continue="false" />
</settings>
</system.net>



No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published. Required fields are marked *