Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MaxReceivedMessageSize
Message
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01348712
Message ID:
01348734
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform