Whenever I try to install a Click Once application, I always get a 404 error from the setup.exe file. I've checked the physical folder the web server points to and confirmed that setup.exe exists at the correct location.
The CO deployment also works fine if I open the web page using file://path/to/index.html
Recording The Answer for myself so I can look it up later
In IIS, check to make sure that in the folder's Properties, Home Directory Tab, Application Settings section, that it is running Scripts Only and not Scripts and Executables.
In the website properties in IIS on the Home Directory tab make sure you've set execute permissions to Script only and NOT to Script and Executables.
If you are using IIS 7 or later, go to Handler Mappings feature, and remove CGI mapping. Then your setup.exe will served as usual static file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With