<?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>Thomas Maurer (tm) &#187; .xap</title>
	<atom:link href="http://www.thomasmaurer.ch/tag/xap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thomasmaurer.ch</link>
	<description>Just another private cloud weblog</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:10:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><script type='text/javascript' src='https://apis.google.com/js/plusone.js'></script><g:plusone size='small' href='http://www.thomasmaurer.ch/2010/01/configuring-iis-for-silverlight-applications/'></g:plusone></div><div class='dd_button'><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.thomasmaurer.ch/2010/01/configuring-iis-for-silverlight-applications/" data-count="horizontal" data-text="Configuring IIS for Silverlight Applications" data-via="thomasmaurer" ></a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class='dd_button'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.thomasmaurer.ch%2F2010%2F01%2Fconfiguring-iis-for-silverlight-applications%2F&amp;locale=en_US&amp;layout=button_count&amp;action=like&amp;width=92&amp;height=20&amp;colorscheme=light' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:92px; height:20px;' allowTransparency='true'></iframe></div></div><div style='clear:both'></div></div><div style='clear:both'></div><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>
<!-- Social Buttons Generated by Digg Digg plugin v4.5.3.4, 
    Author : Yong Mook Kim
    Website : http://www.diggdigg2u.com --><div class="shr-publisher-391"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.thomasmaurer.ch/2010/01/configuring-iis-for-silverlight-applications/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

