Connect.Collaborate.SharePoint

Installing the SharePoint BluePrint for Silverlight: SilverlightPart

First off, Silverlight 2.0 is still beta so you should not install it on a production server, but for those who want to throw caution into the wind (it will be blown back in your face like me), here are the steps I went through for a non-development environment (i.e. no Visual Studio 2008 installed).

If you have tried to get this working before reading this post and just got a blank web part then step 5 is probably the solution.

If you just install the Silverlight BluePrint samples onto a SharePoint Server, they will not work because the following dependencies must be installed:

  1. Install .Net 3.5 framework http://www.microsoft.com/downloads/details.aspx?FamilyID=333325fd-ae52-4e35-b531-508d977d32a6&DisplayLang=en
  2. Silverlight plugin (yes, this must be installed on the server)
    http://www.microsoft.com/silverlight/resources/installationFiles.aspx?v=2.0
  3. Silverlight 2 Beta 1 SDK
    http://www.microsoft.com/downloads/info.aspx?na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=4e03409a-77f3-413f-b108-1243c243c4fe&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f4%2f1%2fb%2f41b00352-1a7f-48bb-be51-b9cef025ca11%2fsilverlight_sdk.exe
  4. Copy the System.Web.Silverlight.dll from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Server to c:\windows\assembly
  5. Check the /ClientBin/ directory of you SharePoint site for the existence (and correct version) of Silverlight.js (if missing, copy it from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Tools)
  6. Register the MIME type for file extension .XAP in IIS (the W2K8 registraion is not correct for SL2B1)

Perform an IISReset and you should now be able to add the SilverlightPart (1st demo from http://www.ssblueprints.net/sharepoint/) to a page. If you get a blank web part, step 5 above fixed this for me, if not it appears the only option is to recompile the web parts in VS 2008 (a bit tricky if you don't have such a development server).

Sample page hosting a Silverlight 1.0 Hello World XAML demo http://www.wssdemo.com/pages/silverlight2.aspx?PageView=Shared

The other samples require AJAX support so you will have to install ASP.Net 3.5 make major changes to your web.config file. I'll post steps for doing this on a non-developer SharePoint platform soon.

Posted by Ian Morrish on Sunday, 23 Mar 2008 09:07 | 10 Comments
SharePoint

Links to this post

Trackback from Blog on 12 Apr 2008 08:58

Comments


Monday, 24 Mar 2008 04:33 by
Ian Morrish
Note: this is just to get Silverlight 1.0 xaml files to work. XAP is still not working, more steps must be required :-( I'll keep on working at it...


Tuesday, 25 Mar 2008 09:22 by Prain Wach
Keep going Ian, i´ll wait for your next post - how to make this XAP (V.2) working..? I have not VS2008, and i have to change my webconfig by hand (se Patrick Tisseghems blogg), many steps..


Wednesday, 26 Mar 2008 02:05 by Chris OConnor
Still yet to get the 2.0 version working - I noticed it's now working on your samples page. Is that one using the XAP version ? Great article - thanks for the tips !


Wednesday, 26 Mar 2008 06:02 by Prain Wach
HI Chris, im pretty sure that this is not XAP-files, just the silverlight blueprint webpartwrapper who picking up version 1. Im really curios if Ian will get XAP to work without VS2008.. Hope to Ian!


Thursday, 27 Mar 2008 02:06 by Chris OConnor
Success !! Have been able to show the Silverlight 2 control within a webpart - using the XAP file. Lots of to/fro - have blogged about it here...> http://grumpywookie.wordpress.com/2008/03/26/getting-started-with-silverlight-blueprint/
http://grumpywookie.wordpress.com/2008/03/26/installing-silverlight-for-vs2008/
http://grumpywookie.wordpress.com/2008/03/26/success-hello-world-silverlight/


Tuesday, 8 Apr 2008 01:48 by Zaher
i've performed all the previous steps but still the empty webpart appears , where is the silverlight.js supposed to be


Saturday, 12 Apr 2008 12:25 by Ian Morrish
in the /ClientBin/ directory of you SharePoint site. You can copy it from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Tools)


Wednesday, 16 Apr 2008 09:27 by Guido
I allways got the error "Cannot import this Web Part". Installing the .Net Framework 3.5 resolved it.


Wednesday, 23 Apr 2008 02:44 by Riccardo
The problem with the webpart being blank. Posiable fix. The XAP file is a zip file with AppManifest.xaml and the DLL for the silverlight app. Rename it to .zip, extract the files. The AppManifest.xaml seems to be the culprit. On the first line

Tuesday, 6 May 2008 03:37 by Andre Stene-Larsen
Try to use the content editor web part to inject the object element with a pointer to the .xap file. In your clientbin folder of your silverlight project you should find a testpage.html. That's the html you need. It works, but it is a work around.

Name

Url

Email

Comments

CAPTCHA Image Validation