Clickonce is only a static file in the specified format. It uses a mimetype called "application/X-MS-application" for ing.
Put the prepared clickonce release package directly under the folder created by Tomcat. You can use chrome (tested with 15.0), Firefox (tested with 8.0), ie9 to download the package and install it successfully. However, if you use IE6 to go to the installation page, click "Install" and you will only see a lot of XMLCode. I think the new browsers currently support the. Application file type, but IE6 does not know it, the client does not know it, and the client can only identify it by setting the file type list on the server.
Specific configuration method:
You can open $ tomcat/config/Web. xml or web context and add the following code in the appropriate position:
<Mime-mapping> <extension> application </extension> <mime-type> application/X-MS-application </mime-type> </mime-mapping>
Alternatively, if you use Apache to accelerate static files before tomcat, you can/Etc/httpd/CONF/httpd. confFile configuration, just Insert the following line:
Addtype application/X-MS-application. Application
If the client still cannot access IE6 after configuration, restart the Tomcat service, clear the client IE6 cache, and restart IE6.
Reference: http://serverfault.com/questions/29493/how-can-i-deploy-a-clickonce-application-via-tomcat
If you need to reprint, please note: Reprinted from:Http://blog.csdn.net/jiangzhanchang/article/details/6989033