“The request failed with HTTP status 417: Expectation failed”

Akhirnyaa blog ini  ada postingan ttg “programming”  (iseng biar ada IT nya dikit ini blog) 😛

Mau sharing aja kebetulan barusan ada error aplikasi then googling rada lama dan akhirnya nemu juga solusinya 😉 By the way pernah dapet exception inikah : “The request failed with HTTP status 417: Expectation failed“?? Waktu kalian akses web service?

Nah ini ada situs yang ngasih solusi dan penjelasan detail : http://www.codeproject.com/Articles/94235/The-request-failed-with-HTTP-status-417-Expectatio

Solusinya, disable “Expect 100-Continue property” dengan nambahin code berikut di web.config aplikasi .NET kalian:

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

Then, silahkeun compile ulang, Insya Allah error tadi ga muncul lagi 🙂

Author: asa

Green lover ;)

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s