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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:09:43+00:00 2026-06-07T13:09:43+00:00

I have a web form(.net framework 4) which contains a submit button and a

  • 0

I have a web form(.net framework 4) which contains a submit button and a FileUpload control.When I debug the website from visual studio 2010, the form appears as intended.When I upload a file with size > 438k(as per my observations.Actual value of maximum file size is unknown,but for file with size 200K, it is working),I get the following error on clicking the button.

Server Error in '/Dpp2012New' Application.
HTTP Error 400 - Bad Request.
Version Information: ASP.NET Development Server 10.0.0.0 

When I upload a file with size less than above limit, code functions as usual.
The onclick event handler codebehind is:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
    If FileUpload1.HasFile Then
        MsgBox("Has file!")
    End If
End Sub

After scratching through the net(this SO post), I added this in web.config:

    <system.web>
        <httpRuntime  maxRequestLength="102400" executionTimeout="360"/>
    </system.web>

This should have solved the issue.But it does not.
Any help to solve the problem would be highly appreciated.

  • 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-07T13:09:47+00:00Added an answer on June 7, 2026 at 1:09 pm

    Please debug your site and check whether you are connected to the database ? I think you are not connected.
    If you are facing a problem in uploading large files then you must add the following attribute to your webconfig file.

    <system.web> 
    <httpRuntime executionTimeout="110" maxRequestLength="20000" /> 
    </system.web>
    

    maxRequestLength is the maximum file size.

    Updated Answer:
    Run your site on a different browser like google chrome, Internet explorer.

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

Sidebar

Related Questions

I have a asp.net web form which will submit information to come as emails.
I have an asp.net web form (c#, .NET framework 3.5) that returns to itself
In my ASP.NET Web-form Project I have an Event which Export Data ( List<Profit>
I have an asp.net content form which contains a couple of textboxes. I need
I am learning Entity Framework 4. I have a simple ASP.NET (Web Form) application.
I have an ASP.NET web form on which I'm displaying a list of database
I have a system written in ASP.Net 2.0 Web Form. The framework that talks
I have two applications Web Socket and Web Service created in .Net/Web Form and
I have a pretty simple ASP.NET Web Form that looks a bit like the
I have created a great stand-alone web form in asp.net utilizing many jQuery features

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.