Avatar of ezinder
ezinder
 asked on

MVC4 File Upload and "maxRequestLength"

Experts,

I'm in quite a bind here and could use some help.  I am a new C# / MVC developer and am also new to Visual Studios as a whole..  But I've managed to develop a small portal site that allows users to upload a video.  This is where I ran into the dreaded 404.13 error: "The request filtering module is configured to deny a request that exceeds the request content length."

I've done some research and found a number of solutions, non of which seem to make any difference.

1. Change the machine config as such:
%windir%\system32\inetsrv\appcmd set config -section:requestFiltering -requestLim
its.maxAllowedContentLength:214783647

That did't work..

2. Add code to Web.Config:
<system.web>
      <httpRuntime maxRequestLength="214783647"
         useFullyQualifiedRedirectUrl="true"
         executionTimeout="45"
         versionHeader="1.1.4128"/>
   </system.web>

I tried this in a number of variations, to no avail.  I put it in Web.Debug.Config / Web.Config, etc..  


I should also add that I am on a Windows 8 machine, and am running the website in debug mode through whatever IIS Express service Visual Studio 2012 provides by default.

I am a total newb.. so I don't even know what each config file is suppose to do.  Please help.

Thank you very much!
- Eyal
ASP.NET.NET ProgrammingMicrosoft IIS Web Server

Avatar of undefined
Last Comment
Amandeep Singh Bhullar

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Gary Davis

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Kumaraswamy R

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ezinder

ASKER
Gray Davis,
I don't need to state the obvious.  I need a solution.  And as you can see, I do not have IIS installed.  I'm using the built-in web service provided by the VS2012 runtime.

rkworlds,
I've tried that, as you can see in my post.  I also tried adding the executionTimeout value.  No change.  I've also modified the machine config as my post specifies.

Any other solutions?
Amandeep Singh Bhullar

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy