Link to home
Start Free TrialLog in
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
ASKER CERTIFIED SOLUTION
Avatar of Gary Davis
Gary Davis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ezinder
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?
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.