Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-11-13
2
Medium Priority
?
5,709 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

636 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