Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 17th, 2008, 09:54 AM
Authorized User
Points: 483, Level: 7
Points: 483, Level: 7 Points: 483, Level: 7 Points: 483, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2007
Location: Edgewood, NY, USA.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default iis 5

Hello all. Need your help. We are running an iis server version 5 (I know). I get an error in my ASP file upload page due to files to large. Only over 150kb! I am trying to see where I can change the ASPMAXENTITYALLLOWED property. I downloaded metaedit which allowed me to open the metabase.bin file. I found this property, but it is already at the max setting. Any other ideas?? I am trying to avoind going to iis6 which has metabase.xml, a much easier way to change the variables.

Reply With Quote
  #2 (permalink)  
Old July 17th, 2008, 05:32 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Very strange!! This ASPMAXENTITYALLLOWED property you talk about, IME this does not control allowed file sizs with IIS versions before 6.0 - Out of interest where are you viewing this?

You say over 150kb, I dont think so. There must be some mistake? The default script time out (90 seconds I beleive) IIS allows you to control is the only problem I have ever come accross using v 5.0 + but less than 6.0

I can upload up to 10MB files using a pure ASP upload. How are you uploading files? I assume with some component, you should find a component specific setting to eliminate your issue. You say:

;;;I get an error in my ASP file upload page due to files to large

Help others help you - Post the error and explain what you are using to perform the upload

Wind is your friend
Matt
www.elitemarquees.com.au
Reply With Quote
  #3 (permalink)  
Old July 18th, 2008, 08:31 AM
Authorized User
Points: 483, Level: 7
Points: 483, Level: 7 Points: 483, Level: 7 Points: 483, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2007
Location: Edgewood, NY, USA.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Matt.
if you would be so kind to visit "http://www.freeaspupload.net". Its a great code when it works! Source code is there. Its just to asp pages. Maybe you can see something within the code that i dont see....

Page returns this error:

System reported this error:
response.write "The most likely cause for this error is the incorrect setup of AspMaxRequestEntityAllowed in IIS MetaBase.
Please see instructions in the requirements page of freeaspupload.net

Reply With Quote
  #4 (permalink)  
Old July 18th, 2008, 11:21 AM
Authorized User
Points: 483, Level: 7
Points: 483, Level: 7 Points: 483, Level: 7 Points: 483, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2007
Location: Edgewood, NY, USA.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

By the way Matt, I downloaded "metaEdit 2.2. This allowed me to view to metabase.bin file which appraently holds the variables that ii6 uses in the now available "metabase.xml" file.

I tried endlessly to upload again files. any file under 150 kb went through. as soon as its above that, it says the server is busy, or reset or can not dispaly the page. Any ideas?

I even went ahead and used a diffeent code "pureupload" that everyone uses, and I get the exact same errors, so it MUST be from the server.

Reply With Quote
  #5 (permalink)  
Old July 20th, 2008, 05:36 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

As it says:

;;;Please see instructions in the requirements page of freeaspupload.net

Did you look at these instructions? I am suprised nobody else has gven tier opinion here. I am very sure IIS version previous to 6.0 do not have a default max file upload set. I upload files all the time using a pure ASP upload and locally run XP pro using IIS 5.1 - myself nor any developers in my office have ever run into this issue. When we roll out on IIS 6.0 we alter the metabase.xml file and have no problem.

;;;I even went ahead and used a diffeent code "pureupload" that everyone uses, and I get the exact same errors, so it MUST be from the server.

How can a different script give you the exact error? The error above is a freeaspupload.net error isnt it? have you checked you script time out setting? How long is your script running when it fails?

Wind is your friend
Matt
www.elitemarquees.com.au
Reply With Quote
  #6 (permalink)  
Old July 21st, 2008, 07:51 AM
Authorized User
Points: 483, Level: 7
Points: 483, Level: 7 Points: 483, Level: 7 Points: 483, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2007
Location: Edgewood, NY, USA.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HI Mat. Thanks for all your time and input. We have did the most technical change to fix and cure this problem.... WE RESTARTED THE SERVER!!!. LOL. Apparently the server was just hanging up somewhere. Sometimes it would wrk, sometimes not, so when my HUGE file DID in fact make it across, I then realized its the serve and not the code. We re-booted the server and now works like a charm!!!!!!!!!!!!!!! What a learnign lesson THAT was.

Reply With Quote
  #7 (permalink)  
Old July 21st, 2008, 05:57 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

No worries....The old re-boot, always worth a try, glad your issue is resolved.

FYI remember - There is no max file size set is IIS version previous to 6.0 - Providing your code is trouble free, the default script time out (90 seconds I think) is the only issue I have ever come accross uploading large files.

IMO - if you need to get large files think is uploading over HTTP the option. FTP is there fora reason.

Wind is your friend
Matt
www.elitemarquees.com.au
Reply With Quote
  #8 (permalink)  
Old July 22nd, 2008, 11:38 AM
Authorized User
Points: 483, Level: 7
Points: 483, Level: 7 Points: 483, Level: 7 Points: 483, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2007
Location: Edgewood, NY, USA.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Mat, I need to pick your brain now.... I am creating folders on the server using file system objects... I get a "write to file failed error". Where do I change permissions so my dynamically created folders will have permissions to write to it?? These folders get created inside a main folder called "damaged_photos".

Thanks for your wisdom. I am on iis5

Reply With Quote
  #9 (permalink)  
Old July 22nd, 2008, 11:43 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Sorry for hijacking this thread; you may want to take a look here: http://imar.spaanjaars.com/QuickDocId.aspx?ID=263

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iis.msc equivalent in IIS for Win XP Pro? RealDHelix Classic ASP Basics 14 March 18th, 2007 08:28 PM
help on iis dutt.manu ASP.NET 1.0 and 1.1 Basics 1 February 15th, 2007 10:34 AM
IIS and 2.0 mike_remember ASP.NET 2.0 Basics 0 January 30th, 2007 08:12 AM
CreateObject error on IIS 4 but not IIS 5 timtom Classic ASP XML 1 December 5th, 2003 01:26 PM



All times are GMT -4. The time now is 10:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.