Pick a Silverlight RIA scenario [D2D, B2E, B2B, B2C] or choose a Web Services style [SOAP/RPC, XML/REST]

Tip : Add XAP Mime-Type in Tomcat and IIS 5.1

Mime-Type are used to provide identifiers for file formats on the Internet.

By default, XAP files are not recognized as a Silverlight application in Tomcat or IIS 5.1. You can set a Mime-Type to identify XAP files on both servers.

Setting Mime-Type in Tomcat

in %TOMCAT_INSTALL%/conf directory, edit web.xml file. Add the following description to identify XAP files

<mime-mapping>
    <extension>xap</extension>
    <mime-type>application/x-silverlight-2-b2</mime-type>
</mime-mapping>
  • Restart Tomcat and clear your navigator cache,
  • get a XAP file to ensure that the Mime-Type is correctly set

image

Setting Mime-Type in IIS 5.1

  • Open the IIS Management Console
  • Open your Web Site properties, under HTTP Headers click on File Types button

image

 

  • In the File Types window, click New Type to add a new Mime-Type

image image

  • Get a XAP file within IIS to ensure that the Mime-Type is correctly set

image

- Ronny Kwon

Published 28 August 08 11:00 by Steve SFARTZ
Filed under:

Comments

# discount furniture &raquo; Tip : Add Silverlight Mime-Type in Tomcat and IIS 5.1 said on August 28, 2008 5:07 AM:

PingBack from http://informationsfunnywallpaper.cn/?p=2673

Anonymous comments are disabled

About Steve SFARTZ

I work for Microsoft France as a Technology Evangelist with expertise in Enterprise Architecture, Interoperability, SOA & Cloud Computing.
Contact me or read one of my other blogs : Think Big mais pas trop..., SOA & Interop @Microsoft France, Cloud Computing @ Microsoft France, Silverlight, RIA & Interoperability

Au sein de l'équipe Entreprise de Microsoft France, je me concentre sur les problématiques Cloud Computing, SOA et Interopérabilité.
Contactez-moi ou bien consultez l'un de mes blogs : Think Big mais pas trop..., SOA & Interop @Microsoft France, Cloud Computing @ Microsoft France, Silverlight, RIA & Interoperability

Search

This Blog

Syndication

Page view tracker