views:

59

answers:

1

I don't expect anyone to be able to help out with this but let's give it a go.

I have a WinForms app that uses a WCF service to pull down a rather large JSON document serialised into a string. I have changed the client's Reader Quota on strings to 8192000 (arbitrary but suitable for most cases) and put the service onto a custom binding with an explicit readerquota of 8192000

checking the service reference in Notepad by eye the quota in the .svcinfo files is set to 8192 although this could be a red herring.

I'm at the end of my tether, I've followed every piece of advice I can find on Google:

to name but two and all the suggested answers I could find on here i.e.

and I looked at this:

http://wildermuth.com/2009/09/10/Using_Large_Message_Requests_in_Silverlight_with_WCF

which was a response to one of the above or one of the many other things I have looked at that I have not retrieved from my "Recently Closed Tabs" list.

Basically I can't think of anything else to do to increase this limit and yet it still insists upon first encountering a string longer than 64k in length that the limits have not been altered at all.

So could anyone just give me a really basic step-by-step to altering this one setting for a WinForms app serialising and then deserialising JSON data as a string on either end of the transaction? A lot of the other advice has been about silverlight or some other scenario and for whatever reason it just fails to affect this case.

A: 

I tried the solution as shown in the last article I linked to again, just to go over my previous work. This time instead of preventing the WCF services from working at all (which is what had happened previously) it instead started to work and upped the limits.

I don't know what I was doing wrong the first time or what I did right this time... one of those things I guess.

bert