473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Time out error on file upload page


I am trying out a simple aspx uploading page for uploading and Access
database. It appears to work alright with smaller files but with
larger files I am getting the following error:

Request timed out.
Stack Trace:
[HttpException (0x80004005): Request timed out.]

Is there a timeout property which I can change?

Or is there something inadequate in the <form method="post"
EncType="multipart/form-data" Runat="Server"> line ?

I would appreciate some help, the aspx page is shown below

Best wishes, John Morgan
<Script Runat="Server">

Sub Button_Click( s As Object, e As EventArgs )
inpFileUp.PostedFile.SaveAs(
"d:\websites\woodl1\www\alphasearch\database\gary. mdb" )
End Sub

</Script>

<html>
<head><title>HtmlInputFile.aspx</title></head>
<body>

<form method="post" EncType="multipart/form-data" Runat="Server">

<input id="inpFileUp" Type="File" Runat="Server">
<p>
<asp:Button
Text="Upload File!"
OnClick="Button_Click"
Runat="Server" />

</form>
</body>
</html>

Nov 18 '05 #1
2 5963
John Morgan wrote:
I am trying out a simple aspx uploading page for uploading and Access
database. It appears to work alright with smaller files but with
larger files I am getting the following error:

Request timed out.
Stack Trace:
[HttpException (0x80004005): Request timed out.]

Is there a timeout property which I can change?

Or is there something inadequate in the <form method="post"
EncType="multipart/form-data" Runat="Server"> line ?

I would appreciate some help, the aspx page is shown below

Best wishes, John Morgan
<Script Runat="Server">

Sub Button_Click( s As Object, e As EventArgs )
inpFileUp.PostedFile.SaveAs(
"d:\websites\woodl1\www\alphasearch\database\gary. mdb" )
End Sub

</Script>

<html>
<head><title>HtmlInputFile.aspx</title></head>
<body>

<form method="post" EncType="multipart/form-data" Runat="Server">

<input id="inpFileUp" Type="File" Runat="Server">
<p>
<asp:Button
Text="Upload File!"
OnClick="Button_Click"
Runat="Server" />

</form>
</body>
</html>


HTH:

http://weblogs.asp.net/mhawley/archi...11/129824.aspx

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2
thanks Craig,
John Morgan

On Thu, 17 Jun 2004 15:49:25 -0500, Craig Deelsnyder
<cdeelsny@NO_SPAM_4_MEyahoo.com> wrote:
John Morgan wrote:
I am trying out a simple aspx uploading page for uploading and Access
database. It appears to work alright with smaller files but with
larger files I am getting the following error:

Request timed out.
Stack Trace:
[HttpException (0x80004005): Request timed out.]

Is there a timeout property which I can change?

Or is there something inadequate in the <form method="post"
EncType="multipart/form-data" Runat="Server"> line ?

I would appreciate some help, the aspx page is shown below

Best wishes, John Morgan
<Script Runat="Server">

Sub Button_Click( s As Object, e As EventArgs )
inpFileUp.PostedFile.SaveAs(
"d:\websites\woodl1\www\alphasearch\database\gary. mdb" )
End Sub

</Script>

<html>
<head><title>HtmlInputFile.aspx</title></head>
<body>

<form method="post" EncType="multipart/form-data" Runat="Server">

<input id="inpFileUp" Type="File" Runat="Server">
<p>
<asp:Button
Text="Upload File!"
OnClick="Button_Click"
Runat="Server" />

</form>
</body>
</html>


HTH:

http://weblogs.asp.net/mhawley/archi...5/11/129824.as


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Amy Kimber | last post by:
Hello, I have a file upload page, and I've had it working fine, it was beautiful :-) Anyway, the powers that be moved hosts... and it doesn't work now. The file name is correct, the directory...
1
by: tito | last post by:
Hello, I am trying to upload file through PHP but I am getting error: 10.4.14 413 Request Entity Too Large The server is refusing to process a request because the request entity is larger...
3
by: thomasp | last post by:
As I sure will become obvious with the asking of this question, I am new to programing.... I have copied and pasted my way to a successful file upload page and have built some rather ugly if...
4
by: Amar | last post by:
I am trying to upload a file to the webserver through my asp.net application. The file upload works fine for files below 50 MB size because i have set the maxrequestlength property of the...
1
by: Stefan Berger | last post by:
Hello everybody, i have a proble with uploading files in asp.net. i want to make a special file upload-page without displaying the common html-file-upload-control. i have a made an additional...
6
by: Paul | last post by:
Hi there, When adding a "File Field" HTML control to an aspx page to facilitate file uploading, the following occurs: 1. You select a file that is larger than the allowed size limit. 2. Once...
2
by: Chip | last post by:
I need to time a file upload using the 1.X HTML upload control. So I need the time the upload started, which is problematic since no page processing takes place until after the file is uploaded. Is...
5
by: John Devlon | last post by:
Hi, Some people like to go on vacation during christmas time, others try to do something they never did before.... I would like to create a multiple file upload page, with some nice progress...
0
by: amskape | last post by:
hi Friends, I need to Upload some files in a Listing , by clicking corresponding Upload link, then a popup window will come with Browse option as Shown in attachment File. My actual need is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.