Microsoft MVP Logo

    <p>In today's MSDN webcast, <a href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032378831&amp;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="http://www.andrewconnell.com/blog/ASPNET-Developer-Looking-for-a-SharePoint-Rand-Up">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>
    <ol>
    <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="http://www.microsoft.com/downloads/details.aspx?FamilyID=1beeac6f-2ea1-4769-9948-74a74bd604fa&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1beeac6f-2ea1-4769-9948-74a74bd604fa&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=1beeac6f-2ea1-4769-9948-74a74bd604fa&amp;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="http://www.microsoft.com/silverlight">http://www.microsoft.com/silverlight</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="http://www.flickr.com/photos/andrewconnell/2527225129/"><img height="124" alt="SL2B1" width="240" border="0" src="http://farm4.static.flickr.com/3200/2527225129_79385f9ea0_m.jpg"></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="http://www.microsoft.com/downloads/details.aspx?FamilyId=E0BAE58E-9C0B-4090-A1DB-F134D9F095FD&amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=E0BAE58E-9C0B-4090-A1DB-F134D9F095FD&amp;displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=E0BAE58E-9C0B-4090-A1DB-F134D9F095FD&amp;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:
    <ul>
    <li>Extension: .xap </li>
    <li>MIME Type: application/x-silverlight-2-b1</li>
    </ul>
    </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="http://www.andrewconnell.com/blogcontent/SharePointSilverlight-web.config.zip">grab this web.config that I used used in the webcast</a> and use a tool like <a href="http://sourceforge.net/projects/winmerge">WinMerge</a> against a vanilla web.config in a SharePoint Web application to view the changes.</li>
    </ol>
    <p>That's it! OK, you can stop laughing now. Remember, we're still in a beta. :)</p>
    <p>Thanks to <a href="http://www.u2u.info/Blogs/Patrick/default.aspx">Patrick</a> &amp; <a href="http://www.u2u.info/Blogs/Karine/default.aspx">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="http://technorati.com/tags/sharepoint">sharepoint</a>,<a rel="tag" href="http://technorati.com/tags/wss">wss</a>,<a rel="tag" href="http://technorati.com/tags/silverlight">silverlight</a></div>
Comments powered by Disqus