problem sending large number of point collections over wcf

1803
2
08-15-2011 04:50 AM
SangamLama
Emerging Contributor
I'm working on a buffer query function that sends a graphic over to wcf, which in turn calls geometryService.Offset(..,..) to draw a buffer around that graphic. These buffers are drawn around parcels, that's why they're polygons. It's always worked for me as desired until very recently when  ran into 2 different parcels (polygons) in 2 different maps that are rather unusual in shape, and therefore have large number of pointcollections. One has 2068 pointcollections, while the other one has a little more than 1400. In both the cases, the WCF fails and throws a generic message ie "The remote server returned an error: NotFound". It doesn't give any more information on this whatsoever.

It took me a while to realize what was going on. I tried sending only some of those pointcollections over WCF service, and that worked fine.

I already have this in ServiceReferences.ClientConfig

<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"/>     

which is the maximum size possible. So, is there any workaround to this?

Thanks,
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
0 Kudos
SangamLama
Emerging Contributor
Indeed! I had been close but not close enough. Just for the record, make sure the quota is increased in both ServiceReferences.ClientConfig, and Web.Config. The latter resides in the .Web project of your Silverlight solution.

<bindings>
            <customBinding>
                <binding name="SvcName">                 
                    <binaryMessageEncoding />
                    <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"/>
                </binding>            
            </customBinding>
        </bindings>

thanks for the direction Jennifer!


This MSDN forum post seem related: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/ee5902e2-55d0-42f4-ab0b-4fe12421d07e/
0 Kudos