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 6092049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:23:53+00:00 2026-05-23T12:23:53+00:00

Here is the context: ASP MVC3 – IIS 7 I am using ElMah configured

  • 0

Here is the context:

ASP MVC3 – IIS 7

I am using ElMah configured very well as documented nearly everywhere for MVC.
And it is working.

Here is what I have in my config file

  <system.web>
    <httpRuntime maxRequestLength="1024" enableVersionHeader="false" />
    <customErrors mode="On" defaultRedirect="~/Error/Generic" />
    ...
     <system.webServer>
        <httpErrors errorMode="Detailed" existingResponse="PassThrough" defaultPath="~/Error/Generic" defaultResponseMode="ExecuteURL"></httpErrors>

Now here is my problem
I spent the whole day trying to catch this error : “Maximum request length exceeded” when I submit a file that exceed 1024 bytes

Between asp errors and IIS errors and sometimes IE interception, I’am getting crazy
I cannot understand why this is so complicated.
I already tried these solutions and none worked for me
solution 1
Solution 2

Thank you for your help

  • 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-05-23T12:23:53+00:00Added an answer on May 23, 2026 at 12:23 pm

    When setting maxRequestLength to 1024 this means 1024 kilobytes, not 1024 bytes. Maybe this is why the exception isn’t thrown.

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

Sidebar

Related Questions

Here's the situation: ASP.NET MVC 3 application using Razor as the view engine. Works
I'm using ASP.NET MVC 3 to build an application, but i'm having a problem
I'm developing an ASP.NET MVC 3 application and I'm using SWFUpload to provide ajax
I have an ASP.NET MVC 3 (using Entity Framework 4.2) application that uses transactions
I am using ASP.NET MVC 3 with razor and the latest version of the
I am using ASP.NET MVC 3 with the Razor view engine . I have
I'm working on a web application project using ASP.NET MVC3 and database in SQL
I am using asp.net mvc 3, ninject 2.0 and the ninject mvc 3 plugin.
I am using Entity Framework 4.1 code first and ASP.NET MVC 3 and I
Context: Asp.Net MVC3 w/Razor I am trying to put a login form on a

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.