?
Solved

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

Posted on 2013-11-13
2
Medium Priority
?
5,780 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 2000 total points
ID: 39647055
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
ID: 39647731
Wow, after i tried all types of configs the resolve, for me was adding the
bindingConfiguration="TransferService" parameter. Thnx
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month17 days, 8 hours left to enroll

830 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