Reputation: 71
When trying to download a 4mb file using DotCMIS (WebServices binding), I receive the following exception when trying to get the content stream of the file.
The maximum message size quota for incoming messages (4194304) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.
I tried modifying app/web configs to no avail. Is there any way around it?
Upvotes: 0
Views: 138
Reputation: 71
After a few hours of playing with app.configs, downloading and studying sources and hopeless googling, the solution turned out to be, as always, painfully simple, obvious and not mentioned anywhere. Or maybe it's just that my googling skills are that of an underage imbecile with alzheimers. That lacks a brain. I'm not sure anymore.
As for the solution: SessionParameters static class / enum thingie has a wonderful field, called "MessageSize". Which defaults to 4194304. Setting it sets MaxReceivedMessageSize.
Upvotes: 1