Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Control II7 mime type with <system.webServer> ?
1 replies. Latest Post by Pluginbaby on November 3, 2009.
(0)
Pluginbaby
Member
553 points
220 Posts
11-02-2009 8:23 PM |
Hi,
Is it possible to control xap mim-type in IIS7 with the <system.webServer> section of the web.config ?
11-03-2009 9:14 AM |
I think I found my answer ;-)
http://blogs.iis.net/bills/archive/2008/03/25/how-to-add-mime-types-with-iis7-web-config.aspx
Here is the config to add to the web.config:
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".xaml" mimeType="application/xaml+xml" /> <mimeMap fileExtension=".xap" mimeType="application/x-silverlight-app" /> <mimeMap fileExtension=".xbap" mimeType="application/x-ms-xbap" />
</staticContent>
</system.webServer>
</configuration>