michielpost.nl

Fix for: cannot write more bytes to the buffer than the configured maximum buffer size 65536

28-04-2012

There will come a moment, during Windows 8 / WinRT development, that you will run into this error:

Cannot write more bytes to the buffer than the configured maximum buffer size 65536

You will google it and end up here.

There's an easy fix for this error message, just increase the buffer size:
HttpClient client = new HttpClient();
client.MaxResponseContentBufferSize = 9999999; (or any value you'd like)

Comments


Rick Barraza 10-05-2012
LOL. Exactly and Exactly. Thanks. ;)


Guillaume LaHaye 20-06-2015
Awesome


New Comment

Name
E-mail (not published)
Comment
Enter the code shown: