Re: Cant't download "exe" file because of IIS version

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Peter McLaren (PeterMcLaren_at_discussions.microsoft.com)
Date: 10/07/04


Date: Thu, 7 Oct 2004 13:17:02 -0700

I have a somewhat similar problem to Claude.

I have Execute Permissions on the virtual directory set to "Script Only". I
have set a MIME type for EXE to application/x-msdownload. I click on the link
to download the exe and it times out and I get a dialog box indicating:
"Internet Explorer cannot download x.exe from website. Internet Explorer was
not able to open this internet site. The requested site is either unavailable
or cannot be found. Please try again later."

The NTFS File permissions on this x.exe file is set to Everyone/change.
There is a PDF file in the same directory that can be viewed perfectly.

Does anybody have any ideas as to what else I might need to do to get this
exe to download in IIS6?

Thanks

"David Wang [Msft]" wrote:

> Given this request:
> http://myserver/download/program.exe
>
> Should IIS execute program.exe on the server, as a CGI, to generate a
> response, or should IIS send the contents of program.exe to the browser as a
> download? There is no way for anyone to figure out the behavior you
> actually want, so IIS gives you a configuration choice to determine it --
> Execute Permissions.
>
> If it is set to "Scripts and Executables", then IIS treats the URL as
> "execute program.exe on the server". Otherwise, it treats it as "send the
> contents of program.exe to the browser as a download".
>
> Finally, on IIS6, there are two other security measures associated with
> "executing code on the server" and "sending contents to the browser as
> download". IIS6 does not allow any code to execute on the server unless it
> is allowed on the Web Service Extensions list, and IIS logs a 404.2 for any
> violation of this security setting. IIS6 does not allow any static content
> to be downloaded from the server unless it has a registered MIME Type
> setting for the given extension, and IIS logs a 404.3 for any violation of
> this security setting.
>
> --
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no rights.
> //
> "Ouatzefeuq'" <nomail@nospam.fr> wrote in message
> news:Xns955ED0B044DE3nomailnospamfr@193.252.19.141...
> "doug" <anonymous@discussions.microsoft.com> wrote in news:096101c495ab
> $41dc9d60$a401280a@phx.gbl:
>
> > Ok...what does happen? Make sure you don't have the
> > virtual directory setup to run scripts and executables.
> >
> > doug
>
> That's right !? I set it to "Scripts" only and it works...
>
> I don't understand why ? Do you know what it means ? What's the relation
> with this option and my problem ?
>
> Thanks anyway :-) !!!
>
> Claude.
>
>
>



Relevant Pages

  • Re: IIS error with .com in virtual directory name
    ... IIS rejects the client request with a 403.1 error - ... execute access forbidden. ... IIS seems to think that the virtual directory name ... > - In Internet Services Manager right click on the virtual directory, ...
    (microsoft.public.inetserver.iis)
  • Re: IIS error with .com in virtual directory name
    ... "Virtual Directory Names with Executable Extensions Are Not Used Correctly" ... Kristofer Gafvert - IIS MVP ... execute access forbidden. ... > - In Internet Services Manager double click on the virtual directory, ...
    (microsoft.public.inetserver.iis)
  • Re: Cantt download "exe" file because of IIS version
    ... Should IIS execute program.exe on the server, as a CGI, to generate a ... Execute Permissions. ... "execute program.exe on the server". ... contents of program.exe to the browser as a download". ...
    (microsoft.public.inetserver.iis)
  • RE: Error executing winform application using zero touch deployment
    ... IIS by default blocks download of *.config files since it need to protect ... > I have deployed my winform application on iis server in a virtual directory. ... > Is there any way to bundle the config file inside the excutables itself, ...
    (microsoft.public.dotnet.general)
  • Re: DP server share
    ... The server that we defined this "server share" on is a SUS server too so I ... > And if you select download & execute for your advertisement. ... >> itself has IIS on it and the DP has the BITS enabled checkbox selected. ...
    (microsoft.public.sms.setup)