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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:44:16+00:00 2026-05-16T00:44:16+00:00

I have a .NET 3.5 website that is uploading files to a SQL Server

  • 0

I have a .NET 3.5 website that is uploading files to a SQL Server 2008 filestream. This all works great until I hit a certain file size and I unexpectedly get odd error returns in the browser.

In IE 7, if I upload a file with a size of about 100 meg, the browser returns after about 2 minutes with an error saying “Internet Explorer cannot display the webpage”. Completely generic and totally useless error. Were it a timeout issue, then I would expect to see an error with a little more explanation.

In Firefox 3.6.7, when uploading the same file the browser returns after about 4 minutes with an equally generic and useless error that says “The connection was reset”. Again, were it a timeout error (eg – somewhere in my code I have a connection timing out) then I would at the very least expect Firefox to return after 2 minutes with the generic error, because IE returned after just 2 minutes.

I need some ideas on how to diagnose this and hopefully track down what is causing the problem.

Also, I have the file upload size limited to 1 gig in the web.config.

<!-- 1 Gig upload -->
<httpRuntime maxRequestLength="1048576" />

EDIT:

Are there any settings in IIS 7 that could be affecting this? I’m not an IIS guru, so I may have configured my website wrong.

  • 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-16T00:44:17+00:00Added an answer on May 16, 2026 at 12:44 am

    The answer:

    MSDN requestLimits

    The web.config has a section for fine tuning websites running under IIS 7. I’m amazingly ignorant when it comes to IIS 7, so it’s small wonder that I ran into this problem.

    <security>
      <requestFiltering>
        <!-- 2 gig max upload --> 
        <requestLimits maxAllowedContentLength="2147483648"></requestLimits>
      </requestFiltering>
    </security>
    

    The default value for maxAllowedContentLength is 30000000 bytes. Do a bit of math and you’ll discover that 30000000 bytes equals 29,296.875 KB, which explains why I could upload a file with 29,174 KB, but not one with 29,308 KB.

    As soon as I upped this valued, my file upload worked for the bigger PDF’s.

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

Sidebar

Related Questions

I have an ASP.NET website that is contacting a webservice. Everything works fine connecting
I have an ASP.NET MVC website that works in tandem with a Windows Service
I have an ASP.NET MVC 3 website that works perfectly in IIS7 integrated mode.
So I have this ASP.Net 2.0 website that uses functions contained within a JS
I have an asp.net website that will generate some excel files with 7-8 sheets
I have an ASP.NET website that has been deployed since 2008 with plenty of
I have an asp.net website that allows the user to download largish files -
Good Morning All, I have inherited an ASP.net website that was originally started back
I have an asp.net mvc website that returns a JSON result to certain pages
I have a few pages on my asp.net website that I would like to

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.