>I am getting an error message when attempting to download a file via a web service.
>
>In my client app I have a Service reference a configuration.svcinfo and a configuration91.svcinfo. I added the property in first and changed its value in the 91 file.
>
>Neither had any effect. How/where do I set the MaxReceivedMessageSize property? How would I determine the "appropriate binding element"?
>
You need to add this to your web.config file. I think the .svcinfo files are just used by VS, not really WCF. Do you have a <system.serviceModel> section in the web config?
The entries would end up looking like:
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="NameOfMyBinding" maxReceivedMessageSize="8192000">
</binding>
</wsHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="ServiceTypeBehaviors" name="MyServiceBehavior">
<endpoint address="" binding="wsHttpBinding" bindingConfiguration="NameOfMyBinding"
contract="IContractName" />
</service>
</services>
>
>The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.