Skip to main content

Microsoft Silverlight

Answered Question Control II7 mime type with <system.webServer> ?RSS Feed

(0)

Pluginbaby
Pluginbaby

Member

Member

553 points

220 Posts

Silverlight MVP

Control II7 mime type with <system.webServer> ?

Hi,

Is it possible to control xap mim-type in IIS7 with the <system.webServer> section of the web.config ?

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Laurent Duveau
Silverlight MVP / Silverlight Insider
http://weblogs.asp.net/lduveau/

Pluginbaby
Pluginbaby

Member

Member

553 points

220 Posts

Silverlight MVP
Answered Question

Re: Control II7 mime type with <system.webServer> ?

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>

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Laurent Duveau
Silverlight MVP / Silverlight Insider
http://weblogs.asp.net/lduveau/
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities