Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: Web API returns 204 No Content doesn't work on Windows Azure Website [1657]

$
0
0
Create basic Web API template project without auth.
Make sure ValuesController has following action:
// PUT api/values/5
public void Put(int id, [FromBody]string value)
{
}

Deploy the application to azure website.
Repeat sending following requests:

PUT http://webstacktest03.azurewebsites.net/api/Values/1 HTTP/1.1
Content-Length: 6
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: webstacktest03.azurewebsites.net

="123"

You will observe:
1st request: works
2nd request: no response
3rd request: works
4th request: no response

The same scenario works fine in local IIS express.
Comments: I saw some user has same issue as mine: http://social.msdn.microsoft.com/Forums/windowsazure/en-US/74ab0c8b-576c-4ecc-9419-a044f6c385e9/web-api-with-204-http-response-is-not-responding?forum=windowsazuredevelopment

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>