473,625 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP file upload with IIS 5.1 problem

Hi,

I have a standard WinXP Pro/IIS 5.1/ASP 3.0/MS Access setup at home,
which I use to develop web apps as a hobby.

I'm trying to upload stuff from a html form's file input field and
handle it with the MetaBuilders.Fi leUp.wsc component, which I used all
the time at work (Win2000 Server/IIS 5.0) and worked fine.

The files are uploaded correctly, and I can save them wherever I want
- so permissions seem to be set properly - but here is the problem:
after a few uses of this script, the thing hangs, and I end up getting
a 403.9 - too many users... error.

I fished around the Google groups search about this, and it seems to
have happened to other people, but I couldn't find a definitive
answer. It seems to have something to do with the code eating up HTTP
connections - IIS 5.1 is limited to 10 or 11 of those.

At first, I thought that it was the FileSystemObjec t that ate these
connections, but even if I don't save the file to the file system, the
same thing happens. I checked, and the only time the FSO object is
used within the fileup component is when the save() and saveas()
methods are called, which I do not do.

Before people tell me these:

1) No, it has nothing to do with antivirus software, since I have none
installed. (Yes, I live dangerously...)

2) No, there are not too many people hitting the web app - I am the
only one connected to it, it's on my home network.

3) No, I don't want to buy a server OS with a "real" web server.

4) I doubt it has anything to do with my ASP code, since I religiously
close connections and destroy objects, and especially since the code
ran well on PWS...

The practical implication of this issue is that IIS 5.1 cannot be used
to serve anything using file uploads. I have a hard time believing
this is by design, since it seriously impedes any real development
effort...

Anyways, any insight would be most welcome.
Jul 19 '05 #1
3 3096
"TontonJP" wrote:

I have a standard WinXP Pro/IIS 5.1/ASP 3.0/MS Access setup...

...after a few uses of this script, the thing hangs, and I end
up getting a 403.9 - too many users... error.
You're definitely bumping up against the 10-session limit of IIS on XP
Professional. Let's continue...

...No, there are not too many people hitting the web app - I
am the only one connected to it, it's on my home network.
That's not really a guarantee that you won't run out of sessions. Every time
you open a new browser window, you potentially create a new session. And
that includes browser windows opened from your IDE (VS.Net, InterDev,
Dreamweaver, etc.).

...No, I don't want to buy a server OS with a "real" web server.
Then you will have to make accomodations for this problem. If you don't use
session variables very heavily -- and you shouldn't -- you can probably get
away with shortening the default session length in IIS.

Before I started using a server OS, I had a similar problem, due to my
propensity to test with a multitude of browsers (as well as the fact that
many of my coworkers access some of the tools on my box, which I originally
wrote for myself). Fortunately for me, I had no dependence on sessions, so
cranking the session length down to 60 seconds did the trick *completely and
forever*.

I doubt it has anything to do with my ASP code, since I
religiously close connections and destroy objects, and
especially since the code ran well on PWS...
I'm sure you are right, but for the wrong reasons. Session saturation really
has much more to do with the number of windows opened than anything else.
Since you are dealing with a stateless connection, the server has no idea
that it was supposed to abandon the session in response to a closed window.
If you don't believe me, repeatedly open and close IE (pointing to a static
page with no server-side code) until you run out of sessions. It won't take
long.

The practical implication of this issue is that IIS 5.1 cannot
be used to serve anything using file uploads. I have a hard
time believing this is by design, since it seriously impedes
any real development effort...


This is clearly not the case, since you can use it successfully for a while.
Practice a little session management, and you'll be fine. If you can't
simply shorten the session timeout, you might be able to judiciously use
Session.Abandon () to accomplish the same thing.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #2
>The files are uploaded correctly, and I can save them wherever I want
- so permissions seem to be set properly - but here is the problem:
after a few uses of this script, the thing hangs, and I end up getting
a 403.9 - too many users... error.
Then you're running into the user limitation of a workstation
operating system. You need to upgrade to a server version of your OS
to avoid this.
I fished around the Google groups search about this, and it seems to
have happened to other people, but I couldn't find a definitive
answer. It seems to have something to do with the code eating up HTTP
connections - IIS 5.1 is limited to 10 or 11 of those.

At first, I thought that it was the FileSystemObjec t that ate these
connections, but even if I don't save the file to the file system, the
same thing happens. I checked, and the only time the FSO object is
used within the fileup component is when the save() and saveas()
methods are called, which I do not do.
FSO doesn't affect connections, but your component could be making
extra connections and not releasing them, or not releasing them until
you hit the session timeout limit. You might be able to tweak the
timeout setting to improve your situation, though it may cause you
other problems in the process.
Before people tell me these:

1) No, it has nothing to do with antivirus software, since I have none
installed. (Yes, I live dangerously...)

2) No, there are not too many people hitting the web app - I am the
only one connected to it, it's on my home network.
"People" don't translate to "connection s". One person could make many
connections.
3) No, I don't want to buy a server OS with a "real" web server.
Then you'll always be limited in some respect as to what you can do on
your system.
4) I doubt it has anything to do with my ASP code, since I religiously
close connections and destroy objects, and especially since the code
ran well on PWS...
Well, not if you have sessions, but I don't think it's your code, or
at least not solely your code. Sounds more like the upload component
you use.
The practical implication of this issue is that IIS 5.1 cannot be used
to serve anything using file uploads. I have a hard time believing
this is by design, since it seriously impedes any real development
effort...


It served file uploads fine for you, until you hit its limits. And
yes, it can impede development efforts. But you're caught between two
choices and refuse to choose either one. Either you need to develop
on a server operating system (or have one available for test) or you
need to live with the limitations of not having a server operating
system available. There's no problem with developing to a non-server
operating system if you can live within the limitations. But there
are limitations.

Jeff
Jul 19 '05 #3
Wow, that was quick! ;o))

Thanks for the feedback guys, it's nice to see some people still take
the time to help others. Unfortunately, it seems to me that my problem
won't find a satisfying solution...

To clairify my situation, I do not intend to move the application to a
production server - I only do this at home and expect the app to run
properly for more than testing purposes.

For once, I'm not using session variables on this app. I usually only
use sessions to store a user ID and interface language in secure apps,
but this one is not secured. Still, I'll try to systematically abandon
the session in my footer include, and see if it helps.

I've tried opening and closing the browser multiple times (50 or so...)
with a static page on my server. The sessions must be recycled in this
instance, because it never throws a "too many users" error. I've also
tried with an ASP page that does quite a bit of work - it lists stuff
from an Access db according to search and ordering criteria. Still no
error.

I'm starting to think it might have something to do with the use of the
"multipart/form-data" encoding on the form, since it only seems to
happen when there's a file control involved.

The reason I'm pursuing this issue is that, whether IIS 5.1 is made for
personal purposes or professional development purposes - in which case
the finished code is trasferred to and run from a production server, I
cannot believe it should hang after having done 5 or 6 file uploads.

In any case, I'd like to understand what is really going on here, even
if its not "fixable".

Again, thanks for your time.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4

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

Similar topics

2
3921
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give them a caption, storing the caption and filename in a text file. It's a bit buggy when removing the photos and captions from the file, and also in displaying them on the delete page. you can see it in action at www.4am.com.au/gallery/upload.php...
3
2840
by: Bijoy Naick | last post by:
I've written a simple file upload user control in VB .NET. It comprises of an InputFile HTML Server Control, an Upload button and a message label. User clicks on the Browse button of the InputFile control, selects a file, then clicks on the Upload button. The file is saved to a folder on the server and the message label displays the appropriate msg. The user control also has a SetFilePath method.. This is used by the page which includes...
6
4128
by: tshad | last post by:
I have an upload file input as: <input id="MyFile" style="width:300px" type="File" runat="Server"> This works fine, but I find that if my page doesn't pass validation during postback, the page comes back with all the data intact, except for the upload object. The text box for "MyFile" (my example) is always cleared. Why is that and is there a way to stop that from happening? Thanks,
18
4335
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't get it to upload a file to the FTP server. I just get a "Cannot connect to remote server" error after this TRY: s = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
4
4469
by: Matt Jensen | last post by:
Howdy I've got a rather strange issue occuring. I used forms based .NET authentication, although I'm also setting some session variables when people login. However, I've found when people use one of my webform pages which includes a button that pops up a window where you can upload files, if you upload files in this popup window, it seems to somehow clear out all of the session variables and the users get logged out. However, if...
5
1592
by: William LaMartin | last post by:
I have a VB ASP.Net application where the user can upload a file using the FileUpload server control. I also want a thumbnail to be created for this file. Unfortunately I can see no means to determine when the file upload is complete so that I can use the MakeThumbnail function as part of the code. My current workaround is to supply an addition button the users can click on when they think the upload is done that will find the uploaded...
4
2396
by: riteshjain82 | last post by:
Hi, Please go through this: I am having a file (default.asp) on which i am taking many details from a user before mailing it to someone. I have also provided the user with a facility of uploading files on a server. I am uploading files from a page upload.asp which has a link on default.asp. Now my problem is that, how can i send the file name that is uploaded, in a mail along with other details that the user enters on default.asp?? In...
6
3035
by: Vic Spainhower | last post by:
Hello, I am trying to do a FTP file upload which works fine on my localhost but on my ISP server it fails. I can't seem to find where I can go to find the specific cause of the failure. In both cases the file is being transmitted to the same FTP server and using the same PHP script so it shouldn't be a file size or login credentials problem. Could someone please help me out and give me some ideas what is wrong. I would really...
7
3180
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file" name="file_1" size=46 /><input type=submit /> so, after adding a few files, the input fields look like this:
1
2717
by: pbd22 | last post by:
hi. i have been posting this here and elsewhere a lot and can't seem to get resolution on this problem. i have been trying to upload files using a hidden iframe to a asp.net/vb.net form. the problem is that the server code can't read the httpfilecollection. the count is always zero. my upload form's form tag looks like this:
0
8251
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8182
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8688
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8352
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6115
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2614
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.