MaxReceivedMessageSize adjusted, but still getting the QuotaExceedException with WCF
Posted
by djerry
on Stack Overflow
See other posts from Stack Overflow
or by djerry
Published on 2010-05-21T08:40:33Z
Indexed on
2010/05/21
9:20 UTC
Read the original article
Hit count: 426
Hey guys,
First of all, i have read the "millions" of post on this site and some blogs/forum post on other websites, and no answer is solving my problem.
I'm my app, there's a possibility to import a txt or csv file with data. In the case of the error, the file contains 444 rows (file is 14,5 kB). When i try to send it to the server to process it, i get an QuotaExceedException, telling me to increase MaxReceivedMessageSize. So i changed it to a much higher value, but i'm still getting the same exception.
I'm using the same exact items for client and server in system.servicemodel in my config file. Config snippet :
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="NetTcpBinding_IMonitoringSystemService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="500"
maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="100000" maxArrayLength="100000"
maxBytesPerRead="100000" maxNameTableCharCount="100000" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign">
<extendedProtectionPolicy policyEnforcement="Never" />
</transport>
<message clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tcp://localhost:8000/Monitoring%20Server"
binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IMonitoringSystemService"
contract="IMonitoringSystemService" >
<!--name="NetTcpBinding_IMonitoringSystemService"-->
<identity>
<userPrincipalName value="DJERRYY\djerry" />
</identity>
</endpoint>
</client>
</system.serviceModel>
Can i use this sample for client and server config? And what should i not use in that case.
Thanks in advance.
© Stack Overflow or respective owner