Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8013955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:47:06+00:00 2026-06-04T19:47:06+00:00

I am having errors attempting to upload a file larger than 4 megs in

  • 0

I am having errors attempting to upload a file larger than 4 megs in my MVC project. The upload works fine for smaller files. Looking online, I saw that I should add

<httpRuntime maxRequestLength="200000" executionTimeout="240"/>

to my web config, in system web, but that has had no effect. The connection is still resetting. Are there other configs that need to be changed that I may have missed? The file is 10 megs, so that request length is plenty large enough.

The request is not timing out, the connection is reset instantly.

I also tried adding

<security >
  <requestFiltering>
    <requestLimits maxAllowedContentLength="1024000000" />
  </requestFiltering>
</security>`

to my webserver section in web config, but that had no effect either. The web config is the one located in the correct project, and the connection never reaches the breakpoint located in my controller, which makes me believe that this must be a config problem where an http request with a too-large file is being rejected. If that is the case, why doesn’t the maxrequestlength attribute fix the problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:47:07+00:00Added an answer on June 4, 2026 at 7:47 pm

    :/. Found the problem. I had been adding maxRequestLength to the wrong web config. There is one webconfig file in views, and one in the full project. I was putting it inside of views. Wasn’t even aware of the fact that there were 2, and several people missed it as well. Terrible design to put two identically named and similarly purposed files inside of the project, seperated by only one layer of file depth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to link my program executable, but I keep getting errors. Having
I am trying to upload two files at once (two file fields) with codeigniters
I am having script errors of Error expected ')' in IE when attempting to
Good day! I am having errors in merging/combining/concatenating arrays. For example I have arrays,
I am trying to create a trigger but is having errors.... SQL> CREATE OR
I am trying to send SMS using a webservice call. But am having errors
Having this errors when trying to compile/run my app using Maven. I've succeeded to
Magento 1.4.2 Having compilation errors and the page doesn't render. I get errors but
I've been having some strange errors lately. I have a working install of Git,
I'm having issues with some vague errors popping out of my fluent configuration. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.