Configure the clickonce program in Tomcat to make it compatible with IE6

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.