asp.net - HTTP Error 400 - Bad Request due to FileUpload control in vb.net -


I have a web form (.net frame 4) that has a submit button and a FileUpload control. When I debug the website, from Visual Studio 2010, this form appears. When I size and GT; 438k (According to my comments, the actual value of the maximum file size is unknown, but with a 200k size file, it is working), I get the following error when I click on the button. error in the '/ dpp 2012 new' application HTTP error 400 - Bad request version information: ASP. .NET Development Server 10.0.0.0

When I upload a file with a size lower than the upper limit, the code functions are the onclick event handler code in general:

 < Code> Protected sub button handles 1_Click button (System.AventAgg as ByVal E.) as the object. If I click on FileUpload1.HasFile, then after mbbbox ("file is!") Ending the ending sub   

net (SO post), I put it in web.config Added:

  & lt; System.web & gt; & Lt; HttpRuntime maxRequestLength = "102400" Execution Time = "360" /> & Lt; /system.web>   

This issue should have been resolved. But it is not. Any help to solve this problem would be highly appreciated.

Please debug your site and check whether you are connected to the database? I think you are not connected if you are having trouble uploading large files, then you have to add the following attribute to your web configuration file.

  & lt; System.web & gt; & Lt; HttpRuntime executionTimeout = "110" maxRequestLength = "20000" /> & Lt; /system.web>   

Maximum file size is maximum.

Updated answer: Run your site on a different browser, such as Google Chrome, Internet Explorer.

Comments