views:

796

answers:

5

There has been a flurry of updates released to Microsoft's Silverlight over the past couple of months (Silverlight 2 beta 2 runtime + dev tools, RC0 + dev tools which broke beta 2 apps), and recently Microsoft has released the RTM.

I have been trying (unsuccessfully) to integrate Sharepoint 2007 and Silverlight. Many of the sharepoint/silverlight blogs i have read are outdated, meaning that they target SL Beta 2.

So, my question is...

What steps are necessary in order to host a Silverlight 2.0 (RTM) application, in a web part, on Sharepoint Server 2007 ?

+4  A: 

I haven't tried this out but it seems like a good start:

Silverlight Blueprint for SharePoint

jan
i agree that its a good start, but the samples have not been updated to the RTM. Looks like they are working on that =D
Jukebox
+1  A: 

This might help: http://www.u2u.info/Blogs/Karine/Lists/Posts/Post.aspx?ID=40

Toni Frankola
A: 

If you are going to be using User Controls [i.e. Web Parts], then I'd highly recommend looking at http://www.codeplex.com/smartpart/Release/ProjectReleases.aspx?ReleaseId=8050">SmartPart. You'll still need to do the things in the blogs above to get the assemblies recognized, trusted, etc, but this may help you get your user controls deployed faster.

Cory Foy
+2  A: 

This isn't too difficult to do. There are a few steps you need to follow:

  1. Update IIS with the xap mime type.

  2. Put your files some that SharePoint can get them. In our case we developed a feature which deployed the silverlight javascript files and our xap out to folders in the ISAPI folder (%Program Files%\Common Files\Microsoft Shared\web server extensions\12\ISAPI). We created a folder called _xaps to host these files.

  3. Put the Silverlight object code in either the page itself or in a content web part.

[EDIT: For some reason my object code isn't showing up. So here is a link to an example instead]

That's all there is to it. You're probably best off creating a feature to copy of the files and update whatever page you're hosting the control in. But to just stick silverlight in SharePoint the above should work.

Bryant
A: 

hi there,

Silverlight 2 appears to be a bit outdated to me as currently, I am using Silverlight 3 and Sharepoint Service. In order to run Silverlight 3, you must have the following things installed on the server:

  1. Install the Visual Web Developer 2008 tool
  2. Install the Visual Studio 2008 Service Pack 1
  3. Run the Silverlight 3 Toolkit
  4. Run the RIA Service Installation

I have my Sharepoint site + Silverlight application running perfectly at ASPHostPortal. If you still have problems, please message me and I will see what I can do.