troubleshooting Question

MVC4 File Upload and "maxRequestLength"

Avatar of ezinder
ezinder asked on
Microsoft IIS Web Server.NET ProgrammingASP.NET
4 Comments2 Solutions1225 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Gary Davis
Dir Internet Svcs

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros