Solved

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

Posted on 2013-11-13
2
5,334 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what technologies offer Authentication over Web Services? 4 105
Entity Framework 3 47
How do ASP.NET and MVC work together? 4 29
Gridview alignment 1 10
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 …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

895 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

20 Experts available now in Live!

Get 1:1 Help Now