<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Installation and Setup</title><link>http://forums.silverlight.net/forums/13.aspx</link><description>All about installing and getting Silverlight running on your system</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>IIS configuration instructions for hosting the 1.1 Quickstart samples</title><link>http://forums.silverlight.net/forums/thread/620.aspx</link><pubDate>Tue, 01 May 2007 22:30:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:620</guid><dc:creator>timlt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/620.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=13&amp;PostID=620</wfw:commentRss><description>&lt;p&gt;If you&amp;#39;ve browsed the Silverlight web site yet, you know by now that the &lt;a class="" title="Silverlight 1.1 Alpha Quickstart Documentation and samples" href="http://go.microsoft.com/fwlink/?LinkID=88932"&gt;Silverlight 1.1 Alpha Quickstart documentation and samples&lt;/a&gt;&amp;nbsp;can also be downloaded from &lt;a class="" href="http://go.microsoft.com/fwlink/?LinkID=89145"&gt;here&lt;/a&gt;, and hosted on your PC.&amp;nbsp; This not only gives you offline access to the Quickstart docs, it&amp;#39;s a nice way to hack the sample code, experiment with your own samples, etc.&lt;/p&gt;
&lt;p&gt;Included in the 1.1 Quickstart documentation .ZIP file is a Readme.htm file with setup instructions for configuring IIS and getting your PC ready to host the documentation and samples.&amp;nbsp; This information is generally useful in that it gives you the essential setup details that you need for hosting ANY Silverlight-based web application on IIS.&amp;nbsp; Because we have already made a couple of updates and corrections to the Readme.htm file, and it may be a few days before the download version of the file is updated, I decided to post the setup information here on the forums as a temporary convenience for new users.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Following is the full content of the updated Readme.htm file that ships with the Silverlight 1.1 Alpha Quickstart Documentation download, and you will find the information in this file useful not only for setting up the 1.1 Quickstart docs, but it&amp;#39;s also generally useful in showing how to configure IIS for hosting a Silverlight-based application.&amp;nbsp; Note in the Prerequisites that if you are just setting up a server to host a Silverlight-based Web site, and the server is not a development machine, you do not have to install the full Visual Studio &amp;quot;Orcas&amp;quot; Beta 1 version on the server.&amp;nbsp; You can install just the .NET Framework version 3.5 Beta 1 instead.&amp;nbsp; Note also, that the instructions below apply ONLY to configuring an offline documentation site, for private access on your local machine or internal network.&amp;nbsp; To configure a secure site for public access, you should follow best practices for securing web sites as documented in the MSDN documentation for IIS and ASP.NET.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;=================================&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h1&gt;Microsoft Silverlight Offline Quickstart Documentation&lt;/h1&gt;
&lt;p&gt;This download contains the offline QuickStart documentation for Microsoft Silverlight version 1.1 Alpha (May 2007), initially released as a Community Technology Preview in April 2007. The same content is available online as the &lt;a href="http://go.microsoft.com/fwlink/?LinkID=88932"&gt;Microsoft Silverlight 1.1 Alpha QuickStart Documentation&lt;/a&gt;. For the most current versions of the content, please check the online site.&lt;/p&gt;
&lt;p&gt;You can use the files in this download to install the QuickStart documentation as an ASP.NET Web site that you host on your development computer. The documentation includes running code examples that will work on this released version of Silverlight.&lt;/p&gt;
&lt;h2&gt;Prerequisites&lt;/h2&gt;
&lt;p&gt;The computer that hosts the documentation Web site must have the following software installed in order to run the documentation Web site:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Internet Information Services (IIS). 
&lt;li&gt;The .NET Framework version 2.0, with ASP.NET 2.0 configured and running on the default Web site in which you create the virtual directory for the documentation. 
&lt;li&gt;Microsoft Visual Studio codename “Orcas” Beta 1. You can get this from the Visual Studio beta &lt;a href="http://go.microsoft.com/fwlink/?LinkId=89146"&gt;download page&lt;/a&gt;. If you do not wish to install Visual Studio, you can install only the .NET Framework version 3.5 Beta 1 from the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=88923"&gt;Silverlight download site&lt;/a&gt;, which provides the components required to run the code examples. 
&lt;li&gt;Microsoft Silverlight version 1.1 Alpha (May 2007).&amp;nbsp; For current installation information and downloads, see &lt;a href="http://www.silverlight.net/"&gt;http://www.silverlight.net&lt;/a&gt;. &lt;/li&gt;&lt;/ul&gt;
&lt;h2&gt;Create the Documentation Web Site on Windows XP or Windows Server 2003&lt;/h2&gt;
&lt;p&gt;*For Windows Vista setup instructions, see the next section.&lt;/p&gt;
&lt;p&gt;Follow these steps to install the files and create a Web site that lets you view the documentation.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a folder on the host computer and extract the contents of the zip file into it. 
&lt;li&gt;Open the Internet Information Services Manager (IIS Manager), right-click the Default Web site, select &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;New&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, and create a new virtual directory using the virtual directory creation wizard.&amp;nbsp; When the wizard prompts you for the alias of the directory, enter &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;devpreview&lt;/font&gt;&lt;/code&gt;.&amp;nbsp; It is important to name the virtual directory &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;devpreview&lt;/font&gt;&lt;/code&gt;, because some paths in the documentation website are coded to that specific path name.&amp;nbsp; When the wizard asks you what content directory to use, browse to the local folder in which you extracted the contents of the .ZIP file.&amp;nbsp; In the access permissions step of the wizard, give it permissions to &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Read&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; and &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Run Scripts&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;.&amp;nbsp; Note:&amp;nbsp; If you do not give permissions to &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Run Scripts&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, the virtual directory will not be created as an application, and the documentation site will not work. 
&lt;li&gt;In IIS Manager, right-click the node for the new &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;devpreview&lt;/font&gt;&lt;/code&gt; virtual directory, select &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Properties&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, and follow these steps: 
&lt;ol&gt;
&lt;li&gt;Click the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Directory Security&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; tab, click &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Edit&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; in the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Anonymous access and authentication control&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; section, and then make sure that the virtual directory is configured for anonymous user access. (This is typically the default configuration, so you probably do not need to change the setting.)&amp;nbsp; Note:&amp;nbsp; You also need to ensure that the account used for anonymous access, or a user group of which this account is a member, is given Read or Read and Execute permissions on the Windows folder that contains the files for this Web site. To confirm this now, open Windows Explorer, browse to the folder, right-click the folder and select &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Sharing and Security&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, and then click the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Security&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; tab. If the account being used for anonymous access does not appear on the folder with the required permissions, add it now. 
&lt;li&gt;In the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Documents&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; tab, make sure that the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Enable Default Document&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; option is checked. 
&lt;li&gt;If there is no default file entry for &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;Default.aspx&lt;/font&gt;&lt;/code&gt; in the list, add one.&amp;nbsp; Also add entries for&amp;nbsp; &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;Default.htm&lt;/font&gt;&lt;/code&gt; and &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;Default.html&lt;/font&gt;&lt;/code&gt;, if not already present. 
&lt;li&gt;In the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Virtual Directory&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; tab, make sure that &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Scripts only&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; is selected in the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Execute Permissions&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; list. 
&lt;li&gt;Click &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Apply&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, and close the properties window for the new virtual directory. 
&lt;li&gt;In the IIS Manager, select and expand the node for the new virtual directory you created. 
&lt;li&gt;Right-click on the &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;Samples&lt;/font&gt;&lt;/code&gt; subdirectory, and then click &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Properties&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;. 
&lt;li&gt;Click the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;HTTP Headers&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; tab, and click &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Mime Types&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; (it may be called &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;File Types&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; in some IIS versions). 
&lt;li&gt;Register each of the following new file extension types for the Samples directory. You are doing this so that these file types can be downloaded by the Web server to the Silverlight runtime. For each item in the following table, click the&amp;nbsp; &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;New&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; button to create a new MIME type, enter the extension string in the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Extension&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; text box, enter the MIME Type string in the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Mime Type&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; text box, and then click &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;OK&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;. 
&lt;div align="left"&gt;
&lt;div align="left"&gt;
&lt;table class="" id="table1"&gt;

&lt;tr&gt;
&lt;td class=""&gt;&lt;strong&gt;Extension&lt;/strong&gt;&lt;/td&gt;
&lt;td class=""&gt;&lt;strong&gt;MIME Type&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=""&gt;dll&lt;/td&gt;
&lt;td class=""&gt;Assembly&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=""&gt;xaml&lt;/td&gt;
&lt;td class=""&gt;XAML file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=""&gt;py&lt;/td&gt;
&lt;td class=""&gt;IronPython file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=""&gt;jsx&lt;/td&gt;
&lt;td class=""&gt;Managed Jscript file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=""&gt;pdb&lt;/td&gt;
&lt;td class=""&gt;.NET Symbols file&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;When you have finished entering MIME Types, click &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;OK&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, then click &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Apply&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, and close the IIS Manager. &lt;/div&gt;
&lt;li&gt;You can launch the Quickstart documentation site, if it is hosted on your development machine, using a local URL such as &lt;a href="http://localhost/devpreview"&gt;http://localhost/devpreview&lt;/a&gt;.&amp;nbsp; Note:&amp;nbsp; If the documentation site initially fails to run, and you receive browser errors saying that the service is unavailable, or that there are insufficient permissions to access the IIS metabase, you may need to run the Aspnet_Regiis.exe utility from the ASP.NET 2.0 system directory to register the new site and give permissions to the machine account being used by the ASP.NET process.&amp;nbsp; For Windows 2003, the account used by ASP.NET is the &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;NT Authority\Network Service&lt;/font&gt;&lt;/code&gt; account, and in Windows XP SP2 and Vista, it is the &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;ASPNET&lt;/font&gt;&lt;/code&gt; account. You can find further help information in these online support topics: &lt;a href="http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx"&gt;ASP.NET IIS Registration Tool&lt;/a&gt;, &lt;a href="http://support.microsoft.com/?kbid=267904"&gt;Metaacl.exe modifying metabase permissions for the IIS Admin Objects&lt;/a&gt;, and &lt;a href="http://support.microsoft.com/kb/306005/"&gt;How to repair IIS mapping after you remove and reinstall IIS&lt;/a&gt;. &lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h2&gt;Create the Documentation Web Site on Windows Vista&lt;/h2&gt;
&lt;p&gt;Follow these steps to install the files and create a Web site that lets you view the documentation.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a folder on the host computer and extract the contents of the zip file into it.&amp;nbsp; 
&lt;li&gt;Open the Internet Information Services Manager (IIS Manager), and in the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Connections&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; pane, right-click the Default Web site, select &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Add Virtual Directory&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, and create a new virtual directory. In the field for the alias of the directory, enter &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;devpreview&lt;/font&gt;&lt;/code&gt;. It is important to name the virtual directory &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;devpreview&lt;/font&gt;&lt;/code&gt;, because some paths in the documentation website are coded to that specific path name. In the field for the physical path to use, use the path to the local folder in which you extracted the contents of the .ZIP file. 
&lt;li&gt;After the virtual directory has been created, right-click the new virtual directory in the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Connections pane&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, and click &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Convert to Application&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;. 
&lt;li&gt;In IIS Manager, select the node for the new &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;devpreview&lt;/font&gt;&lt;/code&gt; virtual directory, and follow these steps: &lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;Ensure that you are in &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Features view&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; in the details pane for the virtual directory. 
&lt;li&gt;Double-click the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Authentication&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; settings icon, ensure that only Anonymous Authentication is enabled, and click the Back button to return to the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Features view&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;.&amp;nbsp; Note:&amp;nbsp; You also need to ensure that the account used for anonymous access, or a user group of which this account is a member, is given Read or Read and Execute permissions on the Windows folder that contains the files for this Web site. To confirm this now, open Windows Explorer, browse to the folder, right-click the folder and select &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Properties&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;, and then click the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Security&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; tab. If the account being used for anonymous access does not appear on the folder with the required permissions, add it now. 
&lt;li&gt;Double-click the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Authorization rules&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; settings icon, and ensure there is an entry to allow all local users access to the site (this is enabled by default). Click the Back button to return to the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Features view&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;. 
&lt;li&gt;Double-click the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Default document&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; settings icon, and ensure there entries for default documents named &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;Default.aspx&lt;/font&gt;&lt;/code&gt;, &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;Default.htm&lt;/font&gt;&lt;/code&gt;, and &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;Default.html&lt;/font&gt;&lt;/code&gt;. Click the Back button to return to the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Features view&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt;. 
&lt;li&gt;In the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Connections&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; pane, expand the node for the &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;devpreview&lt;/font&gt;&lt;/code&gt; virtual directory, and select the &lt;code&gt;&lt;font face="Lucida Console" color="#008000"&gt;Samples&lt;/font&gt;&lt;/code&gt; folder. 
&lt;li&gt;Double-click the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Mime types&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; settings icon in the details pane, and add entries for each of the Mime types indicated in the following table. You are doing this so that these file types can be downloaded by the Web server to the Silverlight runtime. For each item in the following table, click the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Add&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; button to create a new MIME type, enter the extension string in the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;File name extension&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; text box, enter the MIME Type string in the &lt;span class="ui"&gt;&lt;strong&gt;&lt;font color="#999999"&gt;Mime Type&lt;/font&gt;&lt;/strong&gt;&lt;/span&gt; text box, and then click OK. 
&lt;table class="" id="table2"&gt;

&lt;tr&gt;
&lt;td class=""&gt;&lt;strong&gt;Extension&lt;/strong&gt;&lt;/td&gt;
&lt;td class=""&gt;&lt;strong&gt;Mime Type&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=""&gt;py&lt;/td&gt;
&lt;td class=""&gt;application/x-ironpython&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=""&gt;jsx&lt;/td&gt;
&lt;td class=""&gt;application/x-managedjscript&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;When you have finished entering MIME Types, close the IIS Manager. 
&lt;li&gt;You can launch the Quickstart documentation site, if it is hosted on your development machine, using a local URL such as &lt;a href="http://localhost/devpreview"&gt;http://localhost/devpreview&lt;/a&gt;. &lt;/li&gt;&lt;/ol&gt;&lt;/ul&gt;
&lt;p class="copyright"&gt;Copyright © 2005 - 2007 Microsoft Corporation. All rights reserved.&lt;/p&gt;</description></item></channel></rss>