473,473 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to configure IIS7 to allow zip file uploads using classic asp?

Kal
I recently installed Windows 2008 Server to replace a crashed hard drive on
a web server with a variety of web pages including several classic ASP
applications. One of these makes extensive use of file uploads using a com
tool that has worked for several years.

Under IIS7 doc files and jpeg files upload as before, but zip files give a
500 error. This works the same with the firewall on and off.
Sep 16 '08 #1
10 13114
"Kal" <Ka**@community.nospamwrote in message
news:uj**************@TK2MSFTNGP02.phx.gbl...
>I recently installed Windows 2008 Server to replace a crashed hard drive on
a web server with a variety of web pages including several classic ASP
applications. One of these makes extensive use of file uploads using a com
tool that has worked for several years.

Under IIS7 doc files and jpeg files upload as before, but zip files give a
500 error. This works the same with the firewall on and off.

And what does your event log tell you?

Is this 64bit install? If so is the App Pool 64 bit or 32 bit?
Do you have third party ISAPI filters? If so are you using integrated or
classic pipeline?

--
Anthony Jones - MVP ASP/ASP.NET

Sep 16 '08 #2
On Sep 15, 11:58*pm, "Kal" <K...@community.nospamwrote:
I recently installed Windows 2008 Server to replace a crashed hard drive on
a web server with a variety of web pages including several classic ASP
applications. One of these makes extensive use of file uploads using a com
tool that has worked for several years.

Under IIS7 doc files and jpeg files upload as before, but zip files give a
500 error. This works the same with the firewall on and off.

This does not seem like an IIS issue because you say doc and jpg files
upload as before -- if the COM tool handles the upload as HTTP entity
body, IIS certainly does NOT care if the source bytes came from a doc,
jpg (compressed graphics), or zip file.

If you see change in behavior, it is usually due to some hacky
behavior being employed by the COM tool or ASP app to make it work. It
really doesn't matter if it worked before, if it worked by accident.
One really has to look at the HTTP traffic involved on the request to
make the judgement of correctness.

You can turn on Failed Request Tracing to determine if it is any IIS
module returning the 500 error. If the 500 error comes from processing
the ASP page itself, then that's where I'd investigate. Perhaps you've
misconfigured your web app to accept file uploads -- my ASP Upload
Accepter doesn't use a COM tool and runs just fine on IIS7...

Event Logs won't tell you anything. 32/64bit won't result in
"different" behavior due to file content, and Failed Request Tracing
will tell whether ISAPIs are involved at all.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Sep 16 '08 #3
"David Wang" <w3*****@gmail.comwrote in message
news:68**********************************@a8g2000p rf.googlegroups.com...
On Sep 15, 11:58 pm, "Kal" <K...@community.nospamwrote:
>
Event Logs won't tell you anything.
However, always check event logs, even when you sure they won't tell you
anything unless you happen to be called Neo and see the entire world around
you as a cascading set of green characters.

--
Anthony Jones - MVP ASP/ASP.NET

Sep 16 '08 #4
What is the size of the Zip file ?

Regards,

Trevor Benedict
MCSD

"Kal" <Ka**@community.nospamwrote in message
news:uj**************@TK2MSFTNGP02.phx.gbl...
>I recently installed Windows 2008 Server to replace a crashed hard drive on
a web server with a variety of web pages including several classic ASP
applications. One of these makes extensive use of file uploads using a com
tool that has worked for several years.

Under IIS7 doc files and jpeg files upload as before, but zip files give a
500 error. This works the same with the firewall on and off.


Sep 16 '08 #5
Kal
Size is the obvious first place to look as that setting had to be tweaked in
IIS 6. Where would one set that in IIS 7?
"Trevor Benedict" <tr********@gmail.comwrote in message
news:uG**************@TK2MSFTNGP05.phx.gbl...
What is the size of the Zip file ?

Regards,

Trevor Benedict
MCSD

"Kal" <Ka**@community.nospamwrote in message
news:uj**************@TK2MSFTNGP02.phx.gbl...
>>I recently installed Windows 2008 Server to replace a crashed hard drive
on a web server with a variety of web pages including several classic ASP
applications. One of these makes extensive use of file uploads using a com
tool that has worked for several years.

Under IIS7 doc files and jpeg files upload as before, but zip files give
a 500 error. This works the same with the firewall on and off.


Sep 16 '08 #6
Kal
Hello,

More information, this is very likely the file size problem. My users did
not provide good information in that very small zips (65K) work but larger
ones do not. I did not test for the cut-off, but 365K fails. And it is not
only zip files after all. A 700K doc file failed also.

So if I knew how to set the equivalent of what was
AspMaxRequestEntityAllowed this would probably get resolved very quickly.

Kal
"Trevor Benedict" <tr********@gmail.comwrote in message
news:uG**************@TK2MSFTNGP05.phx.gbl...
What is the size of the Zip file ?

Regards,

Trevor Benedict
MCSD

"Kal" <Ka**@community.nospamwrote in message
news:uj**************@TK2MSFTNGP02.phx.gbl...
>>I recently installed Windows 2008 Server to replace a crashed hard drive
on a web server with a variety of web pages including several classic ASP
applications. One of these makes extensive use of file uploads using a com
tool that has worked for several years.

Under IIS7 doc files and jpeg files upload as before, but zip files give
a 500 error. This works the same with the firewall on and off.


Sep 16 '08 #7
"Kal" <Ka**@community.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hello,

More information, this is very likely the file size problem. My users did
not provide good information in that very small zips (65K) work but larger
ones do not. I did not test for the cut-off, but 365K fails. And it is not
only zip files after all. A 700K doc file failed also.

So if I knew how to set the equivalent of what was
AspMaxRequestEntityAllowed this would probably get resolved very quickly.
In IIS7 IIS manager click in the web site and double click the ASP icon in
the features view. Expand Limits Properties and modify the Maximum
Requesting Entity Body Limit.
--
Anthony Jones - MVP ASP/ASP.NET

Sep 16 '08 #8
Kal
Anthony,
That did the trick. And it was so easy. You have no idea how many things I
tried that did not work.

I think there may be a second part though. One of the things I had done was
to change the setting in applicationhost.config from:
<sectionGroup name="system.webServer">
<section name="asp" overrideModeDefault="Deny" />
to
<section name="asp" overrideModeDefault="Allow" />

After I made your change and tested it, I changed the above to Deny just on
general principals of not fixing what was not broken. The website
immediately stopped working until I changed it back to Allow.

Thanks for your help.

Kal
"Anthony Jones" <An***********@yadayadayada.comwrote in message
news:uA**************@TK2MSFTNGP05.phx.gbl...
"Kal" <Ka**@community.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hello,

More information, this is very likely the file size problem. My users did
not provide good information in that very small zips (65K) work but
larger ones do not. I did not test for the cut-off, but 365K fails. And
it is not only zip files after all. A 700K doc file failed also.

So if I knew how to set the equivalent of what was
AspMaxRequestEntityAllowed this would probably get resolved very quickly.

In IIS7 IIS manager click in the web site and double click the ASP icon in
the features view. Expand Limits Properties and modify the Maximum
Requesting Entity Body Limit.
--
Anthony Jones - MVP ASP/ASP.NET
Sep 16 '08 #9
If you leave it as "Deny", then you can only change the setting inside
applicationHost.config -- which is certainly possible using <location>
tags, as the UI will illustrate.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

On Sep 16, 1:49*pm, "Kal" <K...@community.nospamwrote:
Anthony,
That did the trick. And it was so easy. You have no idea how many things I
tried that did not work.

I think there may be a second part though. One of the things I had done was
to change the setting in applicationhost.config from:
* * * * <sectionGroup name="system.webServer">
* * * * * * <section name="asp" overrideModeDefault="Deny" />
to
* * * * * * <section name="asp" overrideModeDefault="Allow" />

After I made your change and tested it, I changed the above to Deny just on
general principals of not fixing what was not broken. The website
immediately stopped working until I changed it back to Allow.

Thanks for your help.

Kal"Anthony Jones" <AnthonyWJo...@yadayadayada.comwrote in message

news:uA**************@TK2MSFTNGP05.phx.gbl...
"Kal" <K...@community.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hello,
More information, this is very likely the file size problem. My users did
not provide good information in that very small zips (65K) work but
larger ones do not. I did not test for the cut-off, but 365K fails. And
it is not only zip files after all. A 700K doc file failed also.
So if I knew how to set the equivalent of what was
AspMaxRequestEntityAllowed this would probably get resolved very quickly.
In IIS7 IIS manager click in the web site and double click the ASP iconin
the features view. *Expand Limits Properties and modify the Maximum
Requesting Entity Body Limit.
--
Anthony Jones - MVP ASP/ASP.NET- Hide quoted text -

- Show quoted text -
Sep 17 '08 #10
On Sep 16, 6:11*am, "Anthony Jones" <AnthonyWJo...@yadayadayada.com>
wrote:
"David Wang" <w3.4...@gmail.comwrote in message

news:68**********************************@a8g2000p rf.googlegroups.com...
On Sep 15, 11:58 pm, "Kal" <K...@community.nospamwrote:
Event Logs won't tell you anything.

However, always check event logs, even when you sure they won't tell you
anything unless you happen to be called Neo and see the entire world around
you as a cascading set of green characters.

--
Anthony Jones - MVP ASP/ASP.NET

Ok, then call me Neo. :-)

In all seriousness, this is the rationale -- given that the user issue
is per-request (i.e. happens only on certain requests but not others),
if the issue is an IIS configuration, it CANNOT show up in the Event
Log. Why? Because that would then become a security vulnerability --
spamming the event log.

For IIS7, the fastest way to prove (or disprove) configuration is to
use Failed Request Tracing. Tracing tells you EVERYTHING that happened
on the request within IIS. One does not even need to ask the user for
configuration details -- the execution flow visible in Tracing gives
all necessary details. Given how flexible IIS7 can be configured,
Tracing is really the only consistent way to troubleshoot request-
bound IIS issues.

Of course, Tracing is effective when the failure is request-bound
within IIS. If the problem is elsewhere, yes, I agree that looging at
Event Log and HTTPErr log would be useful steps, along with network
sniffer for the traffic, as I've always advocated for troubleshooting.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Sep 17 '08 #11

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

Similar topics

7
by: OneSolution | last post by:
Hi All, Here's one thing that I don't know much about - file uploading. As part of my project, I will have to build a file manager of sorts - perhaps a document manager. Anyhow, this involves...
1
by: Doug Helm | last post by:
I should have been more clear in my subject line. I was also the poster in the "File Uploads" topic. I'm not having any luck getting file uploads to work (multi-part HTML form) on a Windows...
5
by: !!bogus | last post by:
Hi, I found this code in the MSDN library. It works fine for a single upload, but I can't figure out how to make it work for multiple file uploads...can someone please help me? Just paste it...
4
by: Mick | last post by:
Anyone know of any problems with this??? Using it to upload image files to a server. Most of the files work fine but occasionally one causes error with fopen() on server. Seems the...
3
by: darrel | last post by:
My understanding is that using the FILE form element to allow a file upload is limited to one unique file per page. Is that correct? Any thoughts on how best to design an interface to allow...
4
by: mcrose | last post by:
I've written theh standard applicaiton for our client to allow indexed (customer name, subject etc) file uploads via secure http using the <input type='file'http element. This works great, and has...
2
by: alabraha | last post by:
Hi! It's been awhile since I've had to upload files with classic asp and now that we're changing servers, we're having a problem with the server guys. They don't want to install any components...
6
by: Brybot | last post by:
I am trying to allow HTTP POST file uploads to my web service. Currently I have it working perfectly for a SOAP/XML request reading in a byte using MemoryStream/FileStream but I cannot figure out...
1
by: =?Utf-8?B?YXNob2tuYW5kaA==?= | last post by:
Hi, I am using a native asp.net file upload technic which currently supports small files. But i need to upload the file of size more than 200 mb to 300 mb. I have used many 3rd party...
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.