Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to solve unable to access exe file in IIS issue.  (Read 3071 times)

0 Members and 1 Guest are viewing this topic.

lathu_official

  • Guest
How to solve unable to access exe file in IIS issue.
« on: January 16, 2014, 01:35:56 pm »
Issue: http://domain.com/sample.exe shows 404 error.


Add the following lines to your web.config file inside <system.webServer> tag

<system.webServer>

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

</system.webServer>



If you have local/remote access to IIS manager, you can add mimetype via IIS.
If you have WebSitepanel control panel, you can do that via control panel >> Websites >> websites properties >> Mime >> on the "Extensions" field add .exe and on "MIME-Type" add application/octet-stream

-------------
Thanks