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
pepps11976Asked:
Who is Participating?
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.

carlmdCommented:
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.
0
pepps11976Author Commented:
its a windows 2003 web server do you know the path to the log files?
0
Scott CSenior Systems EnginerCommented:
Try inetpub/logging/....
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

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
0
carlmdCommented:
Try either...

c:\inetpub\logs\LogFiles

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

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

Set Execute permissions to "Scripts only" in IIS.
0

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... )
0
skijCommented:
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

0
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.
0
pepps11976Author Commented:
Managed to resolve this myself
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.