Link to home
Start Free TrialLog in
Avatar of pepps11976
pepps11976

asked on

Linking to a .exe file on a Website

Hi

Our website is hosted on iis7, we have a link on the website that when clicked should run a Teamviewer.exe file,
The .exe file is in the root of the site and is present, however when clicking on the link we always get

404 Directory not found
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

I have found on the net about adding the following to the web.config file

<system.webServer>
    <handlers>
      <add name="Client exe" path="*.exe" verb="*" modules="StaticFileModule" resourceType="File" />
    <handlers>
<system.webServer>

but on doing this my whole site stopped working!!


any help much appreciated
Avatar of Carl Dula
Carl Dula
Flag of United States of America image

If you look in the error log for the webserver it should provide more details, including the path that it is using when it gets the error.
Avatar of pepps11976
pepps11976

ASKER

its a windows 2003 web server do you know the path to the log files?
Try inetpub/logging/....
ok I found inetpub\logs in there I have 3 folders

FailedReqLogFiles --- Nothing in there with any recent Dates
Log Files  has a bunch of folders called W£SVC1 - 18 I have looked in all of them but cannot see anything

wmsvc --- Empty
Try either...

c:\inetpub\logs\LogFiles

C:\Windows\System32\LogFiles\HTTPERR  (should contain only errors)
C:\Windows\System32\LogFiles\HTTPERR has nothing in there with todays date

c:\inetpub\logs\LogFiles has all them folders that I mentioned above have looked in them but cannot see anything related
ASKER CERTIFIED SOLUTION
Avatar of pepps11976
pepps11976

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You need to clarify - IIS on Windows server is NOT UPGRADABLE.  You either have IIS 7 as your question states (which is Server 2008) Or you have IIS 6 which is Server 2003.  Your answer can be different (I've forgotten more about 2003 than I remember since it is 12 years old and I haven't run it in 5 years... )
You should make sure that the mime type is configure correctly.  By default, IIS will not make .exe files downloadable.  First you must add a mime type rule.
<configuration>
 <system.webServer>
  <staticContent>
   <mimeMap fileExtension=".exe" mimeType="application/octet-stream" />
  </staticContent>
 </system.webServer>
</configuration>

Open in new window

Since IIS runs as a service and services don't have an interactive screen same goes for the apppool that that instance is running in, .. then attempting to run teamviewer will fail since it needs an interactive screen.

Could you explain what you are trying to accomplish and not the how's and this way we can advise you.. for instance teamviewer must have execution ntfs right for the apppool that is running.
Managed to resolve this myself