Microsoft MVP Logo

    <p>In today's MSDN webcast, <a href=";EventCategory=4&amp;culture=en-US&amp;CountryCode=US">Introduction to SharePoint for .NET Developers: Silverlight &amp; SharePoint</a>, one of many in the <a href="">Introduction to SharePoint for .NET Developers series</a>, you'll see Silverlight 2.0 Beta 1 working within SharePoint. One thing you won't see is me configuring the virtual machine (VM) so that I can not only do Silverlight development in the VM but also to have it run within a SharePoint site. I thought it would be helpful to understand what I had to do to make this work.</p>
    <li>First I am using the <strong>WSS 3.0 SP1 Developer Evaluation VPC Image</strong> that was posted on May 15, 2008 and can be downloaded from the Microsoft Downloads Center. Note it's a whopping 3.4GB compressed:
    <a title=";displaylang=en" href=";displaylang=en">;displaylang=en</a> </li>
    <li>Then I got the <strong>Silverlight 2.0 Beta 1 plugin</strong> installed in my browser. To get this, go to <a href=""></a> &amp; click the <em>Install </em>link in the menu. In the lower right hand corner you'll see <em>Try Silverlight 2 Beta 1</em> as shown. Below... get that installed:
    <a title="SL2B1 by Andrew Connell, on Flickr" href=""><img height="124" alt="SL2B1" width="240" border="0" src=""></a> </li>
    <li>Next, I downloaded the <strong>Microsoft Silverlight Tools Bet 1 for Visual Studio 2008</strong>. This will let you develop Silverlight 2 applications in Visual Studio 2008 &amp; also installs the Silverlight 2 SDK:
    <a title=";displaylang=en" href=";displaylang=en">;displaylang=en</a> </li>
    <li>Next, I deployed the Silverlight assembly (<strong>System.Web.Silverlight.dll</strong>) to the GAC. This can be found in the <strong>C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Server </strong>folder which was added by the install in the previous step. </li>
    <li>Then I added a new MIME type for the Silverlight controls to the Web site in IIS. Open a Web application in IIS and right-click, selecting Properties. Then select HTTP Headers &raquo; MIME Types and add the following:
    <li>Extension: .xap </li>
    <li>MIME Type: application/x-silverlight-2-b1</li>
    <li>Finally, the last thing you need to do is add a bunch of stuff to the web.config for ASP.NET 3.5 (as Silverlight uses some of the extensions stuff) and the Silverlight assembly. Easiest way to do this IMHO is to <a href="">grab this web.config that I used used in the webcast</a> and use a tool like <a href="">WinMerge</a> against a vanilla web.config in a SharePoint Web application to view the changes.</li>
    <p>That's it! OK, you can stop laughing now. Remember, we're still in a beta. :)</p>
    <p>Thanks to <a href="">Patrick</a> &amp; <a href="">Karine</a> for helping out with this.</p>
    <p>[<strong><font color="#ff0000">Update 5/27/2008 @ 1:30p EDT</font></strong>] Fixed the link to WinMerge.</p>
    <div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:25a69417-0049-4c06-ad21-a4a24ee39639" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">Technorati Tags: <a rel="tag" href="">sharepoint</a>,<a rel="tag" href="">wss</a>,<a rel="tag" href="">silverlight</a></div>
Comments powered by Disqus