<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>thomasmaurer.ch &#187; mime</title>
	<atom:link href="http://www.thomasmaurer.ch/tag/mime/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thomasmaurer.ch</link>
	<description>Just another sys admin weblog</description>
	<lastBuildDate>Wed, 08 Sep 2010 14:14:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Configuring IIS for Silverlight Applications</title>
		<link>http://www.thomasmaurer.ch/2010/01/configuring-iis-for-silverlight-applications/</link>
		<comments>http://www.thomasmaurer.ch/2010/01/configuring-iis-for-silverlight-applications/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 13:05:10 +0000</pubDate>
		<dc:creator>Thomas Maurer</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Windows Server 2003]]></category>
		<category><![CDATA[.xaml]]></category>
		<category><![CDATA[.xap]]></category>
		<category><![CDATA[.xbab]]></category>
		<category><![CDATA[IIS Manager]]></category>
		<category><![CDATA[IIS6]]></category>
		<category><![CDATA[mime]]></category>
		<category><![CDATA[mime types]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[silverlight 3]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.thomasmaurer.ch/?p=391</guid>
		<description><![CDATA[You can simply add Silverlight support to your IIS6 webserver running on Windows Server 2003. To enable IIS 6.0 in Windows Server 2003 or IIS7 in Windows Vista RTM with the appropriate MIME Types, add: .xap     application/x-silverlight-app .xaml    application/xaml+xml .xbap    application/x-ms-xbap Adding MIME Types &#8230; <a href="http://www.thomasmaurer.ch/2010/01/configuring-iis-for-silverlight-applications/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://www.thomasmaurer.ch/wp-content/uploads/2010/01/silverlight.png" rel="lightbox[391]"><img class="size-medium wp-image-395  aligncenter" title="silverlight" src="http://www.thomasmaurer.ch/wp-content/uploads/2010/01/silverlight-271x300.png" alt="silverlight" width="271" height="300" /></a>You can simply add Silverlight support to your IIS6 webserver running on Windows Server 2003.</p>
<p>To enable IIS 6.0 in Windows Server 2003 or IIS7 in Windows Vista RTM with the appropriate MIME Types, add:</p>
<ul>
<li>.xap     application/x-silverlight-app</li>
<li>.xaml    application/xaml+xml</li>
<li>.xbap    application/x-ms-xbap</li>
</ul>
<blockquote>
<h3>Adding MIME Types by a simple VB script:</h3>
<ul>
<li>Here is a VBS script you could run to enable each of these types:</li>
</ul>
<p><code><br />
Const ADS_PROPERTY_UPDATE = 2<br />
'<br />
if WScript.Arguments.Count &lt; 2 then<br />
WScript.Echo "Usage: " + WScript.ScriptName + " extension mimetype"<br />
WScript.Quit<br />
end if<br />
'<br />
'Get the mimemap object.<br />
Set MimeMapObj = GetObject("IIS://LocalHost/MimeMap")<br />
'<br />
'Get the mappings from the MimeMap property.<br />
aMimeMap = MimeMapObj.GetEx("MimeMap")<br />
'<br />
' Add a new mapping.<br />
i = UBound(aMimeMap) + 1<br />
Redim Preserve aMimeMap(i)<br />
Set aMimeMap(i) = CreateObject("MimeMap")<br />
aMimeMap(i).Extension = WScript.Arguments(0)<br />
aMimeMap(i).MimeType = WScript.Arguments(1)<br />
MimeMapObj.PutEx ADS_PROPERTY_UPDATE, "MimeMap", aMimeMap<br />
MimeMapObj.SetInfo<br />
'<br />
WScript.Echo "MimeMap successfully added: "<br />
WScript.Echo "    Extension: " + WScript.Arguments(0)<br />
WScript.Echo "    Type:      " + WScript.Arguments(1)</code></p>
<ul>
<li>If you copy and paste the code above into a VBS file and save it as ADDMIMETYPE.VBS the syntax to add each type would be:</li>
</ul>
<p>ADDMIMETYPE.VBS  .xap  application/x-silverlight-app ADDMIMETYPE.VBS  .xaml application/xaml+xmlADDMIMETYPE.VBS  .xbap application/x-ms-xbap</p>
<p>or you could add it very simple over the IIS Manager.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.thomasmaurer.ch/2010/01/configuring-iis-for-silverlight-applications/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
