Solved

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

Posted on 2013-11-13
2
5,278 Views
Last Modified: 2013-11-14
Hello,
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

<system.serviceModel>
    <services>
      <service name="Csla.Server.Hosts.WcfPortal" behaviorConfiguration="returnFaults">
        <endpoint contract="Csla.Server.Hosts.IWcfPortal" binding="wsHttpBinding"/>
      </service>
    </services>
    <bindings>
      <wsHttpBinding>
        <binding name="wsHttpBinding_IWcfPortal"
                 maxReceivedMessageSize="2147483647">
          <readerQuotas maxBytesPerRead="2147483647"
                        maxArrayLength="2147483647"
                        maxStringContentLength="2147483647"
                        maxNameTableCharCount="2147483647"
                        maxDepth="2147483647"/>
        </binding>
      </wsHttpBinding>
    </bindings>

Open in new window


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

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

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?
0
Comment
Question by:rilind
2 Comments
 
LVL 16

Accepted Solution

by:
Kamal Khaleefa earned 500 total points
Comment Utility
refer to this article where it shows how to set the web.config file

 http://www.codeproject.com/Articles/166763/WCF-Streaming-Upload-Download-Files-Over-HTTP
0
 

Author Closing Comment

by:rilind
Comment Utility
Wow, after i tried all types of configs the resolve, for me was adding the
bindingConfiguration="TransferService" parameter. Thnx
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now