Linking to a .exe file on a Website


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

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

but on doing this my whole site stopped working!!

any help much appreciated
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
pepps11976Author Commented:
its a windows 2003 web server do you know the path to the log files?
Scott CSenior EngineerCommented:
Try inetpub/logging/....
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

pepps11976Author Commented:
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:\Windows\System32\LogFiles\HTTPERR  (should contain only errors)
pepps11976Author Commented:
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
pepps11976Author Commented:
ok I found the problem

IIS Manager >> Website/VD >> Properties >> Home Directory >> Application Settings

Set Execute permissions to "Scripts only" in IIS.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lee W, MVPTechnology and Business Process AdvisorCommented:
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.
   <mimeMap fileExtension=".exe" mimeType="application/octet-stream" />

Open in new window

David Johnson, CD, MVPOwnerCommented:
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.
pepps11976Author Commented:
Managed to resolve this myself
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.