WebService MaxReceivedMessageSize: The maximum message size quota for incoming messages (65536) has been exceeded

Source: Internet
Author: User
Tags connectionstrings

parameter settings in the//app.config file
<?xml version="1.0"?><configuration> <system.serviceModel> <bindings> <wsHttpBinding> <binding name="Wshttpbinding_iservice"closetimeout="00:01:00"Opentimeout="00:01:00"receivetimeout="00:10:00"sendtimeout="00:01:00"bypassproxyonlocal="false"transactionflow="false"Hostnamecomparisonmode="StrongWildcard" maxbufferpoolsize="2147483647" maxreceivedmessagesize=" 2147483647" messageencoding="Text"textencoding="Utf-8"usedefaultwebproxy="true"allowcookies="false"> <readerquotas maxdepth=" +"Maxstringcontentlength="8192"Maxarraylength="16384"Maxbytesperread="4096"Maxnametablecharcount="16384"/> <reliablesession ordered="true"inactivitytimeout="00:10:00"enabled="false"/> <security mode="Message"> <transport clientcredentialtype="Windows"Proxycredentialtype="None"Realm=""/> <message clientcredentialtype="Windows"Negotiateservicecredential="true"Algorithmsuite="Default"/> </security> </binding> </wsHttpBinding> </b indings> <client> <endpoint address="http://localhost/wz/Service.svc"binding="Wshttpbinding"bindingconfiguration="Wshttpbinding_iservice"contract="Serviceref.iservice"name="Wshttpbinding_iservice"> <identity> <userprincipalname value="test-xuqi\aspnet"/> </identity> </endpoint> </client> </system.serviceModel> <startup><supportedruntime version="v4.0"sku=". netframework,version=v4.0"/></startup></configuration>

parameter settings in the//web.config file
<?xml version="1.0"encoding="Utf-8"?><configuration> <connectionStrings> <add name="ConnectionString"connectionstring="Data source= (description= (address= (protocol=tcp) (host=20.20.10.100) (port=1521)) (Connect_data= (SERVICE_NAME= (ORCL))); User Id=se; Password=se;pooling=true; Min Pool size=20; Max Pool size=100;"Providername="System.Data.OracleClient"/> </connectionStrings> <system.web> <compilation debug="true"targetframework="4.0"/> </system.web> <system.serviceModel> <bindings> <basicHttpBinding><binding name="wz_ws_servicebinding" maxbuffersize="2147483647 " maxbufferpoolsize="2147483647 " maxreceivedmessagesize= " 2147483647 " /> </basicHttpBinding> </bindings> <services> <service name="Wz_ws. Service"> <endpoint binding="Wshttpbinding"bindingconfiguration=""contract="Wz_ws. IService"/> </service> </services> <behaviors> <serviceBehaviors> <behavior&gt ; <!--to avoid leaking metadata information, set the following values before deployment tofalseand delete the above metadata end point--<servicemetadata httpgetenabled="true"/> <!--to receive the fault exception details for debugging, set the following values totrue。 Before deployment, set tofalseTo avoid leaking exception information--<servicedebug includeexceptiondetailinfaults="true"/> </behavior> </serviceBehaviors> </behaviors> <servicehostingenvironment Multi Plesitebindingsenabled="true"/> </system.serviceModel> <system.webServer> <modules runallmanagedmodulesforallrequests="true"/> </system.webServer> </configuration>

WebService MaxReceivedMessageSize: The maximum message size quota for incoming messages (65536) has been exceeded

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.