Asp mvc, wcf, IIS, Error 413 "Request Entity too large".

i am creating an aplication in asp mvc that communicates with a wcf and is hosted on iis 7.5.
I have a list of objects that are edited. When the number of objects is approximately lower then 15 I can send the list on the wcf and execute the saveedits method. When the number of objects increases i get the following error:

Error 413 'Request Entity too large'

I have configured the web.config on the wcf project to increase maxReceivedMessageSize

      <service name="Csla.Server.Hosts.WcfPortal" behaviorConfiguration="returnFaults">
        <endpoint contract="Csla.Server.Hosts.IWcfPortal" binding="wsHttpBinding"/>
        <binding name="wsHttpBinding_IWcfPortal"
          <readerQuotas maxBytesPerRead="2147483647"

Open in new window

Still getting the error. Then i added on IIS config the following lines:

<location path="SITENAME/APPNAME" overrideMode="Allow">
        <asp />
        <serverRuntime uploadReadAheadSize="2147483647" />

Open in new window

I'm still getting the error. I tried to restart iis and everything but with no luck. Any idea how to resolve this?
Who is Participating?
Kamal KhaleefaConnect With a Mentor Information Security SpecialistCommented:
refer to this article where it shows how to set the web.config file
rilindAuthor Commented:
Wow, after i tried all types of configs the resolve, for me was adding the
bindingConfiguration="TransferService" parameter. Thnx
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.