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

  • Home
  • SEARCH
  • 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 9194213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:21:17+00:00 2026-06-17T21:21:17+00:00

I have tried to catch my HttpExceptions using a try catch block in my

  • 0

I have tried to catch my HttpExceptions using a try catch block in my *_PageStart.cshtml* file using this site as a reference but that didn’t seem to work. Does anyone else have a solution for setting a max filesize error message? I do not wish to simply increase my upload limit in web.config because users of my site shouldn’t need to be uploading files larger than 10MB, so that is my upload limit. I have also tried handling it with my global.asax file but that didn’t work.

Surely, there must be a way to redirect to another page or to simply display an error message upon receiving a file which exceeds the request limit.

  • 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-17T21:21:19+00:00Added an answer on June 17, 2026 at 9:21 pm

    I have managed to fix this myself by using the event handler in Global.asax

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

Sidebar

Related Questions

How can I avoid NullPointerExceptions ? I have tried using try-catch blocks but that
I have tried to write the console output to a txt file using this
I have tried everything but it seems that you cannot get a catch all
I have some PHP code that should cause and catch two exceptions: try{ @$this->connector->connect();
I have tried searching over the internet about this problem but not able to
In my Android app I have tried to put Try Catch blocks in all
I have tried this method to get Altitude, using longitude and latitude private double
I have block try - catch and i want assign error to the template
I have tried looking for an answer to this on other threads, but so
I have done this simple catch: try { echo Request::factory() ->execute() ->send_headers() ->body(); }catch(Exception

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.