Re: Exe files on the webserver

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 06/12/04


Date: Sat, 12 Jun 2004 03:09:02 -0700

You probably have "Scripts and Executables" enabled for the vdir that
contains the EXE file. Change the Execute Permissions to "Scripts" or even
better, "None" -- if you know the directory is just for downloads.

This configuration option is how you tell IIS that the URL "/foobar.exe" is
supposed to be interpreted as "execute foobar.exe on the server" vs "send
foobar.exe as a file download". In the "send as file download" case, the
browser will also offer you a choice to "save" or "run" the download.

Different people want different behavior for the same URL from the browser,
and this configuration gives you that choice.

The default behavior is to allow EXE to download, so you must have manually
misconfigured this option at some point.

I'm fairly certain MIME Type is NOT the problem from a download perspective
because the .EXE MIME Type is defined on a default IIS6 installation.

Alternatively, you should get used to browsing the event log and IIS web log
files, which will contain detailed information and status/error codes which
indicate why the request failed. I'm almost certain that your web log
entries which correspond to 404 for the EXE files look like "404 2 1260" at
the end, which also indicates that you're telling IIS to attempt to execute
the disallowed EXE on the server, which IIS denies by sending a 404 response
for security reasons.

-- 
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Stephen Moss" <cmmsdm@ntlworld.com> wrote in message
news:ljsxc.148$gp1.116@newsfe6-win...
Hi Jeff
>
> Post once.  We'll get to you.
>
Very odd that, I posted it the first time, it then showed in the newsgroup
with a line through it and said something like 'being deleted', so I sent it
again, so it only shows once through my work ISP but twice at home !
> By default, IIS6 won't access exe files.  Do you wnat to download,
> execute on server or execute on client?  All three are different.
>
I want the equivalent of my old NT4 server where you have the option to
download or 'run from here'
Thanks
Stephen


Relevant Pages

  • Re: OT: EXE files in HTML?
    ... >>> I would like to be able to put an EXE file at my Web ... > I would hope that it would download temporarily and execute ... some of the photos. ...
    (alt.usage.english)
  • Re: Opening .exes from web server failing without error
    ... execute it or download it? ... else happens and there is no error at all on the server ... I could do the samme with the exe file by ...
    (microsoft.public.inetserver.iis.security)
  • Re: IE handling of exe files
    ... with execute permissions have always worked. ... If I place a .NET exe in the ... Your web server does not have the .NET framework installed or properly ...
    (microsoft.public.dotnet.general)
  • Re: Old Paper--The Stability Problem in Feedback Amplifiers
    ... Download the 5 into a temp directory and double click on ... I don't .exe as I cannot .exe in a Linux box. ... And Windows users who have WINRAR can extract the .pdf file without using ... they need not execute the .exe. ...
    (rec.audio.tubes)
  • Re: system.diagnostics.process in asp.net
    ... Actually I am trying to get the .exe run server side. ... system.process.diagnostics then client side javascript. ... >in the browser will execute the executable. ...
    (microsoft.public.dotnet.languages.csharp)

Loading