Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MaxReceivedMessageSize
Message
General information
Forum:
ASP.NET
Category:
Web Services
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01348712
Message ID:
01348725
Views:
13
>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.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform