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:
01348734
Views:
14
I had attempted to add a section to the web.config but was copy and pasting in the dark. I'm a novice at this so I do not know how to configure these things properly. I was able to get it working by creating a web reference instead of a service reference. Thanks for your sample, I will try it out with WCF again when time allows.
 <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="Binding1"
                 maxReceivedMessageSize = "10000000">
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>
  </system.serviceModel>-->
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform