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>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s