Re: IIS 6 Windows 2003 SP1 RC 1289 Download bug

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 01/03/05


Date: Mon, 3 Jan 2005 11:10:04 -0800

I see that I gave too many details such that it confused you, so let me
explain it in another way.

The URL you use to request a resource is no indication of whether it is
"direct" (i.e. static file) or not. What matters is if you have a ScriptMap
applicable to that resource's file extension. If you have a Scriptmap AND
Execute Permissions allow at least "Scripts", then it is dynamic. Otherwise,
it is static.

Thus, http://server/windows/files/os/XP/WindowsXP-KB835935-SP2-ENU.exe is
normally a directly static file download UNLESS you have a Scriptmap of .exe
or * present. Then it is a dynamic file. Of course, files sent via ASPX
(a scriptmap itself) is also considered dynamic.

In any case, here are my results:
1. /xpsp2.exe - static file download that is compressed - successful
2. /download.aspx (of /xpsp2.exe) - dynamic file download that is
compressed - successful
3. Same static/dynamic download with compression turned off - successful

By successful, I mean that I did a byte-comparison of the downloaded file
with the original resource and then made sure it executed.

I took the ASPX code you gave me and made one modification to it -- changed
"Content-Type: application/zip" to "Content-Type: application/octet-stream"
. If I allowed .exe to have an incorrect MIME map of "application/zip" or
allowed the ASPX page to add "Content-Type: application/zip", then I get an
error on downloading -- but that is expected since the wrong Content-Type
was sent.

>From my results using your code, it looks like neither IIS6 nor compression
are problems. Incorrect Content-Type which causes the browser to
misinterpret the file download looks like your issue.

Since IIS does not install with application/zip MIME Map for .exe nor does
ASPX add application/zip to .exe download (I checked this on my default
clean installation of RC1), I conclude this is user error of some sort.

-- 
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Techno Mage" <TechnoMage@discussions.microsoft.com> wrote in message
news:A93F21A2-D5AB-4A06-8DD9-1DFEE8D64C0D@microsoft.com...
I fail to see how
http://server/windows/files/os/XP/WindowsXP-KB835935-SP2-ENU.exe
Is not a direct link, and is some how running through something
tell me
if i remove application/zip from the mime map it says 404
i can however change it to application/exe and it downloads
But it never download correctly with the built in compression
I think this bug is somehow related to not being able to open a download
with winwip 9 on normal 2003 (NO sp1)
PS the ASPX does send a file size
THE ASPX IS THE FIX NOT THE PROBLEM


Relevant Pages

  • Re: Releasing my VB.NET app over the intranet
    ... of the primary EXE and when compiled I am copying the contents ... the directory and open a browser on the web server and type ... > another dll, we need to put the dll in the same directory, so that the clr ... > The executable will be downloaded to the assembly download cache on the ...
    (microsoft.public.dotnet.framework)
  • Re: self-autoupdate vb exe
    ... I have two exe files...the main executable and another file I call ... TpaPhx.exe and it operates only with a valid command line. ... same folder on my server as the updated file to download. ... the update as MyApp.exe and the phx script into the same directory. ...
    (microsoft.public.vb.winapi)
  • Re: serving .exe files in IIS 6.0
    ... there is a 404 with suberror 3 that indicates that IIS tried to download the ... then adding .exe as a MIME type would have corrected it. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Cantt download "exe" file because of IIS version
    ... .EXE are automatically downloadable by any browser. ... IE does have some code to detect download type, extension, and content-type, ... exe to download in IIS6? ...
    (microsoft.public.inetserver.iis)
  • Re: Cantt download "exe" file because of IIS version
    ... I removed the MIME type for EXE. ... Went back to IIS Manager and started at the top of the Web Site Hierarchy ... > IE does have some code to detect download type, extension, and content-type, ...
    (microsoft.public.inetserver.iis)