Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Click Once Setup.exe returns 404 with IIS

Tags:

clickonce

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

like image 764
Benjamin Autin Avatar asked Jan 09 '09 20:01

Benjamin Autin


3 Answers

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.

like image 93
Benjamin Autin Avatar answered Sep 20 '22 08:09

Benjamin Autin


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.

like image 24
olle Avatar answered Sep 18 '22 08:09

olle


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.

like image 42
Bulat Avatar answered Sep 20 '22 08:09

Bulat