Often the error message returned by the web server isn't very helpful.  
See if you can find the IIS log file to get a better idea of the error.  
Check to see if the directory where you placed the .exe file is setup in 
IIS as a virtual directory that allows .exe files to be downloaded, (eg 
check IIS permissions for the directory).  If so, use the virtual 
directory path in your code, rather than a fully qualified path.  If the 
.exe file is called using the fully qualified path, IIS may try to run 
the .exe rather than allowing it to be download.

Most browser have a mime section that is configured to start a download 
session when a file with an .exe extension is called and found on the 
Web Server.  After making changes to IIS, its a good idea to restart IIS.

Hope this helps.

The below link may also help

http://support.microsoft.com/kb/248033

Regards,

LelandJ

On 01/08/2012 08:32 AM, Kent Belan wrote:
> Hello,
>
> I am building a new Windows 2008 webserver to host my websites, and having
> some trouble getting things setup and working good. I am not very familiar
> with 2008 server setup ...
>
> I have a website lets say www.mainsite.com and everything is working fine.
>
> My problem is that I have a link to download an EXE install file but the
> link fails with a 404 error.
>
> So the link is like www.mainsite.com/mainfiles/maininstall.exe
>
> The file is definatly in the folder but the browser reports 404 error.
>
> Any ideas on why I am getting a 404 error ?
>
> Thanks,
> Kent
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to